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

Commit 5f97146d authored by Hongwei Wang's avatar Hongwei Wang
Browse files

Default false for isSeamlessResizeEnabled

The PictureInPictureParams#isSeamlessResizeEnabled currently returns
true if an application does not set that explicitly.

We do see flicker from apps that are not seamless resize capable, while
not explicitly setting the flag to false. Doing the reverse, as in this
change, avoids most of those cases.

More context: go/default-seamless-resize-false

Flag: EXEMPT bugfix
Bug: 402783442
Test: atest PictureInPictureParamsTest
Change-Id: Ifcebd0d98b722a1c4b2adc5ecd0e18705eb6f9a1
parent 01fb3505
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -594,7 +594,7 @@ public final class PictureInPictureParams implements Parcelable {
     * @see PictureInPictureParams.Builder#setSeamlessResizeEnabled(boolean)
     */
    public boolean isSeamlessResizeEnabled() {
        return mSeamlessResizeEnabled == null ? true : mSeamlessResizeEnabled;
        return mSeamlessResizeEnabled == null ? false : mSeamlessResizeEnabled;
    }

    /**