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
f7daa91a
Commit
f7daa91a
authored
Dec 22, 2016
by
Yusuke Iwaki
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
remove unused methods
parent
8af0b01f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
34 deletions
+0
-34
MessageComposer.java
...a/chat/rocket/android/widget/message/MessageComposer.java
+0
-34
No files found.
rocket-chat-android-widgets/src/main/java/chat/rocket/android/widget/message/MessageComposer.java
View file @
f7daa91a
...
...
@@ -121,40 +121,6 @@ public class MessageComposer extends LinearLayout {
composer
.
findViewById
(
R
.
id
.
btn_submit
).
setEnabled
(
enabled
);
}
protected
final
void
focusToEditor
()
{
final
TextView
editor
=
getEditor
();
editor
.
requestFocus
();
InputMethodManager
imm
=
(
InputMethodManager
)
getContext
().
getSystemService
(
Context
.
INPUT_METHOD_SERVICE
);
imm
.
showSoftInput
(
editor
,
InputMethodManager
.
SHOW_IMPLICIT
);
}
protected
final
void
unFocusEditor
()
{
InputMethodManager
imm
=
(
InputMethodManager
)
getContext
().
getSystemService
(
Context
.
INPUT_METHOD_SERVICE
);
imm
.
hideSoftInputFromWindow
(
getWindowToken
(),
InputMethodManager
.
HIDE_NOT_ALWAYS
);
}
public
void
show
(
@Nullable
Runnable
callback
)
{
focusToEditor
();
setVisibility
(
View
.
VISIBLE
);
if
(
callback
!=
null
)
{
callback
.
run
();
}
}
public
void
hide
(
@Nullable
Runnable
callback
)
{
unFocusEditor
();
setVisibility
(
View
.
GONE
);
if
(
callback
!=
null
)
{
callback
.
run
();
}
}
public
boolean
isShown
()
{
return
getVisibility
()
==
View
.
VISIBLE
;
}
private
void
animateHide
(
final
View
view
)
{
view
.
animate
().
scaleX
(
0
).
scaleY
(
0
).
setDuration
(
150
).
withEndAction
(
new
Runnable
()
{
@Override
...
...
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