1
0
Fork 0
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:
M66B 2021-04-27 17:06:59 +02:00
parent 556fae1bdb
commit ab5b782b51

View file

@ -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);