Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 72f5a4bc authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Automerger Merge Worker
Browse files

Merge "Fix NPE when calling...

Merge "Fix NPE when calling PasswordViewEntry.getWindowInsetsController().hide()" into sc-dev am: 5235bc49 am: 9d64adaf

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15309902

Change-Id: I01c01409ba71e64d785b250b7724878063e7cd25
parents d1c856bb 9d64adaf
Loading
Loading
Loading
Loading
+6 −2
Original line number Diff line number Diff line
@@ -228,13 +228,17 @@ public class KeyguardPasswordViewController
                super.onPause();
            });
        }
        if (mPasswordEntry.isAttachedToWindow()) {
            mPasswordEntry.getWindowInsetsController().hide(WindowInsets.Type.ime());
        }
    }

    @Override
    public void onStartingToHide() {
        if (mPasswordEntry.isAttachedToWindow()) {
            mPasswordEntry.getWindowInsetsController().hide(WindowInsets.Type.ime());
        }
    }

    private void updateSwitchImeButton() {
        // If there's more than one IME, enable the IME switcher button