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

Commit 5235bc49 authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Fix NPE when calling PasswordViewEntry.getWindowInsetsController().hide()" into sc-dev

parents ea5ce681 120ae3db
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