mirror of
https://github.com/M66B/FairEmail.git
synced 2024-12-22 07:42:52 +00:00
Prevent NPE
This commit is contained in:
parent
4d500cf7bc
commit
1e300cd8af
1 changed files with 1 additions and 1 deletions
|
@ -5154,7 +5154,7 @@ public class FragmentCompose extends FragmentBase {
|
|||
|
||||
boolean ime = true;
|
||||
try {
|
||||
WindowInsetsCompat insets = ViewCompat.getRootWindowInsets(focus);
|
||||
WindowInsetsCompat insets = (focus == null ? null : ViewCompat.getRootWindowInsets(focus));
|
||||
if (insets != null)
|
||||
ime = insets.isVisible(WindowInsetsCompat.Type.ime());
|
||||
} catch (Throwable ex) {
|
||||
|
|
Loading…
Reference in a new issue