Merge "Fix NPE when calling PasswordViewEntry.getWindowInsetsController().hide()" into sc-dev am: 5235bc493d
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15309902 Change-Id: I6cfbaf057c4cd96534cc0c3db3682082878119f6
This commit is contained in:
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user