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

This commit is contained in:
TreeHugger Robot
2021-07-16 17:29:46 +00:00
committed by Android (Google) Code Review

View File

@@ -228,12 +228,16 @@ public class KeyguardPasswordViewController
super.onPause();
});
}
mPasswordEntry.getWindowInsetsController().hide(WindowInsets.Type.ime());
if (mPasswordEntry.isAttachedToWindow()) {
mPasswordEntry.getWindowInsetsController().hide(WindowInsets.Type.ime());
}
}
@Override
public void onStartingToHide() {
mPasswordEntry.getWindowInsetsController().hide(WindowInsets.Type.ime());
if (mPasswordEntry.isAttachedToWindow()) {
mPasswordEntry.getWindowInsetsController().hide(WindowInsets.Type.ime());
}
}
private void updateSwitchImeButton() {