Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
A
AloqaIM-Android
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
AloqaIM-Android
Commits
4563ff68
Commit
4563ff68
authored
Dec 22, 2016
by
Yusuke Iwaki
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
light refactoring
parent
f7daa91a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
MessageComposer.java
...a/chat/rocket/android/widget/message/MessageComposer.java
+4
-2
No files found.
rocket-chat-android-widgets/src/main/java/chat/rocket/android/widget/message/MessageComposer.java
View file @
4563ff68
...
...
@@ -5,6 +5,7 @@ import android.content.Context;
import
android.os.Build
;
import
android.support.annotation.Nullable
;
import
android.text.Editable
;
import
android.text.TextUtils
;
import
android.text.TextWatcher
;
import
android.util.AttributeSet
;
import
android.view.LayoutInflater
;
...
...
@@ -77,7 +78,8 @@ public class MessageComposer extends LinearLayout {
}
});
btnSubmit
.
animate
().
scaleX
(
0
).
scaleY
(
0
).
setDuration
(
0
);
btnSubmit
.
setScaleX
(
0
);
btnSubmit
.
setScaleY
(
0
);
btnSubmit
.
setVisibility
(
GONE
);
((
EditText
)
composer
.
findViewById
(
R
.
id
.
editor
)).
addTextChangedListener
(
new
TextWatcher
()
{
...
...
@@ -91,7 +93,7 @@ public class MessageComposer extends LinearLayout {
@Override
public
void
afterTextChanged
(
Editable
s
)
{
if
(
s
.
toString
().
trim
().
length
(
)
>
0
)
{
if
(
TextUtils
.
getTrimmedLength
(
s
)
>
0
)
{
animateHide
(
btnExtra
);
animateShow
(
btnSubmit
);
}
else
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment