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

Commit dcf831a3 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: 609020b9

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

Change-Id: I054de0bb6a29d911d5be3d9ee95fb7a77ff899c1
parents e8b067c1 609020b9
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