mirror of
https://code.briarproject.org/briar/briar.git
synced 2026-02-12 10:49:06 +01:00
Merge branch '761-keyboard_doesnt_close_on_userinteraction' into 'master'
use SHOW_IMPLICIT when showing the softkeyboard, otherwise it won't auto hide * remove the forced hiding in ThreadListActivity as it should no longer be required Signed-off-by: goapunk <noobie@goapunks.net> Closes #761 See merge request !421
This commit is contained in:
@@ -179,7 +179,6 @@ public abstract class ThreadListActivity<G extends NamedGroup, A extends ThreadI
|
||||
public boolean onOptionsItemSelected(MenuItem item) {
|
||||
switch (item.getItemId()) {
|
||||
case android.R.id.home:
|
||||
if (textInput.isKeyboardOpen()) textInput.hideSoftKeyboard();
|
||||
supportFinishAfterTransition();
|
||||
return true;
|
||||
default:
|
||||
|
||||
@@ -27,7 +27,7 @@ import org.thoughtcrime.securesms.components.emoji.EmojiToggle;
|
||||
import static android.content.Context.INPUT_METHOD_SERVICE;
|
||||
import static android.content.Context.LAYOUT_INFLATER_SERVICE;
|
||||
import static android.view.KeyEvent.KEYCODE_BACK;
|
||||
import static android.view.inputmethod.InputMethodManager.SHOW_FORCED;
|
||||
import static android.view.inputmethod.InputMethodManager.SHOW_IMPLICIT;
|
||||
|
||||
@UiThread
|
||||
public class TextInputView extends KeyboardAwareLinearLayout
|
||||
@@ -180,7 +180,7 @@ public class TextInputView extends KeyboardAwareLinearLayout
|
||||
InputMethodManager imm =
|
||||
(InputMethodManager) getContext()
|
||||
.getSystemService(INPUT_METHOD_SERVICE);
|
||||
imm.showSoftInput(ui.editText, SHOW_FORCED);
|
||||
imm.showSoftInput(ui.editText, SHOW_IMPLICIT);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user