mirror of
https://github.com/M66B/FairEmail.git
synced 2025-01-01 04:35:57 +00:00
Always hide keyboard on closing activity
This commit is contained in:
parent
556fae1bdb
commit
ab5b782b51
1 changed files with 1 additions and 1 deletions
|
@ -328,7 +328,7 @@ public class FragmentBase extends Fragment {
|
|||
InputMethodManager imm = (InputMethodManager) activity.getSystemService(Context.INPUT_METHOD_SERVICE);
|
||||
View focused = activity.getCurrentFocus();
|
||||
if (imm != null && focused != null)
|
||||
imm.hideSoftInputFromWindow(focused.getWindowToken(), InputMethodManager.HIDE_NOT_ALWAYS);
|
||||
imm.hideSoftInputFromWindow(focused.getWindowToken(), 0);
|
||||
}
|
||||
} catch (Throwable ex) {
|
||||
Log.w(ex);
|
||||
|
|
Loading…
Reference in a new issue