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

Commit 823f02c4 authored by Simon (Qiong) Sun's avatar Simon (Qiong) Sun
Browse files

Prevent dim update during onImePositionChanged for 10:90/90:10 split

This change disables the split screen dim update when the IME position changes and the split ratio is either 10:90 or 90:10. This resolves an issue where the screen would dim unnecessarily in these specific split configurations.

Bug: 412841648
Flag: com.android.wm.shell.enable_flexible_two_app_split
Test: EXEMPT bug fix, manual test
Change-Id: Ife3d72434c0ad7f1bc30c4e8238681116b470f8a
parent 29050056
Loading
Loading
Loading
Loading
+5 −2
Original line number Original line Diff line number Diff line
@@ -1662,8 +1662,11 @@ public final class SplitLayout implements DisplayInsetsController.OnInsetsChange
        }
        }


        private void onProgress(float progress) {
        private void onProgress(float progress) {
            if (!mSplitState.currentStateHasOffscreenApps()) {
                // Update dim during onImePositionChanged.
                mDimValue1 = getProgressValue(mLastDim1, mTargetDim1, progress);
                mDimValue1 = getProgressValue(mLastDim1, mTargetDim1, progress);
                mDimValue2 = getProgressValue(mLastDim2, mTargetDim2, progress);
                mDimValue2 = getProgressValue(mLastDim2, mTargetDim2, progress);
            }
            mYOffsetForIme =
            mYOffsetForIme =
                    (int) getProgressValue((float) mLastYOffset, (float) mTargetYOffset, progress);
                    (int) getProgressValue((float) mLastYOffset, (float) mTargetYOffset, progress);
        }
        }