AI 143413: Fix issue #1742588 (Crash phone while switching between keyboard settings and Gmail)
BUG=1742588 Automated import of CL 143413
This commit is contained in:
committed by
The Android Open Source Project
parent
d63323bb54
commit
7a489fdbac
@@ -245,6 +245,7 @@ public class PhoneWindowManager implements WindowManagerPolicy {
|
||||
|
||||
public void update() {
|
||||
ContentResolver resolver = mContext.getContentResolver();
|
||||
boolean updateRotation = false;
|
||||
synchronized (mLock) {
|
||||
mEndcallBehavior = Settings.System.getInt(resolver,
|
||||
Settings.System.END_BUTTON_BEHAVIOR, DEFAULT_ENDCALL_BEHAVIOR);
|
||||
@@ -261,9 +262,12 @@ public class PhoneWindowManager implements WindowManagerPolicy {
|
||||
boolean hasSoftInput = imId != null && imId.length() > 0;
|
||||
if (mHasSoftInput != hasSoftInput) {
|
||||
mHasSoftInput = hasSoftInput;
|
||||
updateRotation(0);
|
||||
updateRotation = true;
|
||||
}
|
||||
}
|
||||
if (updateRotation) {
|
||||
updateRotation(0);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user