Skip to content
Snippets Groups Projects
Commit 5e4116ef authored by akwizgran's avatar akwizgran
Browse files

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: default avatargoapunk <noobie@goapunks.net>

Closes #761

See merge request !421
parents a01eeafe e98f4901
No related branches found
No related tags found
No related merge requests found
......@@ -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);
}
});
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment