AI 143414: am: CL 143413 Fix issue #1742588 (Crash phone while switching between keyboard settings and Gmail)

Original author: hackbod
  Merged from: //branches/cupcake/...

Automated import of CL 143414
This commit is contained in:
Dianne Hackborn
2009-03-27 20:56:50 -07:00
committed by The Android Open Source Project
parent 32bc91d6f6
commit ae585e83a7

View File

@@ -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);
}
}
}