Merge "Fix NPE when calling PasswordViewEntry.getWindowInsetsController().hide()" into sc-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
5235bc493d
@@ -228,12 +228,16 @@ public class KeyguardPasswordViewController
|
|||||||
super.onPause();
|
super.onPause();
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
mPasswordEntry.getWindowInsetsController().hide(WindowInsets.Type.ime());
|
if (mPasswordEntry.isAttachedToWindow()) {
|
||||||
|
mPasswordEntry.getWindowInsetsController().hide(WindowInsets.Type.ime());
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void onStartingToHide() {
|
public void onStartingToHide() {
|
||||||
mPasswordEntry.getWindowInsetsController().hide(WindowInsets.Type.ime());
|
if (mPasswordEntry.isAttachedToWindow()) {
|
||||||
|
mPasswordEntry.getWindowInsetsController().hide(WindowInsets.Type.ime());
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private void updateSwitchImeButton() {
|
private void updateSwitchImeButton() {
|
||||||
|
|||||||
Reference in New Issue
Block a user