Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 7a489fdb authored by Dianne Hackborn's avatar Dianne Hackborn Committed by The Android Open Source Project
Browse files

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

  BUG=1742588

Automated import of CL 143413
parent d63323bb
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -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,8 +262,11 @@ 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);
            }
        }
    }