mirror of
https://github.com/M66B/FairEmail.git
synced 2025-02-23 14:41:08 +00:00
Added fail safe
This commit is contained in:
parent
e422ddec37
commit
34393c22ff
1 changed files with 7 additions and 2 deletions
|
@ -3320,8 +3320,13 @@ public class FragmentCompose extends FragmentBase {
|
|||
EntityIdentity identity = (EntityIdentity) spIdentity.getSelectedItem();
|
||||
|
||||
View focus = view.findFocus();
|
||||
boolean ime = (Build.VERSION.SDK_INT < Build.VERSION_CODES.R ||
|
||||
view.getRootWindowInsets().isVisible(WindowInsetsCompat.Type.ime()));
|
||||
boolean ime = true;
|
||||
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.R)
|
||||
try {
|
||||
ime = view.getRootWindowInsets().isVisible(WindowInsetsCompat.Type.ime());
|
||||
}catch (Throwable ex){
|
||||
Log.e(ex);
|
||||
}
|
||||
|
||||
// Workaround underlines left by Android
|
||||
etBody.clearComposingText();
|
||||
|
|
Loading…
Reference in a new issue