mirror of
https://github.com/oxen-io/session-android.git
synced 2024-11-24 10:35:19 +00:00
parent
0c14639f9c
commit
ec8b06e96c
@ -33,18 +33,17 @@ public class InputAwareLayout extends KeyboardAwareLinearLayout implements OnKey
|
|||||||
if (isKeyboardOpen()) {
|
if (isKeyboardOpen()) {
|
||||||
hideSoftkey(imeTarget, new Runnable() {
|
hideSoftkey(imeTarget, new Runnable() {
|
||||||
@Override public void run() {
|
@Override public void run() {
|
||||||
|
hideAttachedInput(true);
|
||||||
input.show(getKeyboardHeight(), true);
|
input.show(getKeyboardHeight(), true);
|
||||||
|
current = input;
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
} else if (current != null && current.isShowing()) {
|
|
||||||
current.hide(true);
|
|
||||||
input.show(getKeyboardHeight(), true);
|
|
||||||
} else {
|
} else {
|
||||||
input.show(getKeyboardHeight(), false);
|
if (current != null) current.hide(true);
|
||||||
}
|
input.show(getKeyboardHeight(), current != null);
|
||||||
|
|
||||||
current = input;
|
current = input;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
public InputView getCurrentInput() {
|
public InputView getCurrentInput() {
|
||||||
return current;
|
return current;
|
||||||
|
Loading…
Reference in New Issue
Block a user