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

Commit 030711c3 authored by Craig Mautner's avatar Craig Mautner Committed by Android (Google) Code Review
Browse files

Merge "Fix looping to turn off dimming."

parents 9a5acaf9 6af9b92b
Loading
Loading
Loading
Loading
+5 −6
Original line number Diff line number Diff line
@@ -440,9 +440,12 @@ public class WindowAnimator {
                w.mWinAnimator.prepareSurfaceLocked(true);
            }

            if (mDimParams != null) {
                mDimAnimator.updateParameters(mContext.getResources(), mDimParams, mCurrentTime);
            }
            if (mDimAnimator != null && mDimAnimator.mDimShown) {
                mAnimating |= mDimAnimator.updateSurface(mService.mInnerFields.mDimming,
                            mCurrentTime, !mService.okToDisplay());
                mAnimating |= mDimAnimator.updateSurface(mDimParams != null, mCurrentTime,
                        !mService.okToDisplay());
            }

            if (mService.mBlackFrame != null) {
@@ -453,10 +456,6 @@ public class WindowAnimator {
                    mService.mBlackFrame.clearMatrix();
                }
            }

            if (mDimParams != null) {
                mDimAnimator.updateParameters(mContext.getResources(), mDimParams, mCurrentTime);
            }
        } catch (RuntimeException e) {
            Log.wtf(TAG, "Unhandled exception in Window Manager", e);
        } finally {
+1 −1
Original line number Diff line number Diff line
@@ -8428,7 +8428,7 @@ public class WindowManagerService extends IWindowManager.Stub
                    updateWallpaperVisibilityLocked();
                }
            }
            if (!mInnerFields.mDimming) {
            if (!mInnerFields.mDimming && mAnimator.mDimParams != null) {
                mAnimator.stopDimming();
            }
        } catch (RuntimeException e) {