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

Commit 70ff5360 authored by wilsonshih's avatar wilsonshih
Browse files

Enable predictShowStartingSurface by default.

Use snapshot or splashscreen surface for predictive back opening target.

Bug: 268563842
Flag: ACONFIG com.android.window.flags.activity_snapshot_by_default
Test: Verify opening target will show with windowless surface.
Change-Id: I465365547487a8a82d7efa8c06ea032808de3d35
parent 325cc9a5
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -3614,8 +3614,7 @@
    <!-- Whether this device prefers to show snapshot or splash screen on back predict target.
         When set true, there will create windowless starting surface for the preview target, so it
         won't affect activity's lifecycle. This should only be disabled on low-ram device. -->
    <!-- TODO(b/268563842) enable once activity snapshot is ready -->
    <bool name="config_predictShowStartingSurface">false</bool>
    <bool name="config_predictShowStartingSurface">true</bool>

    <!-- default window ShowCircularMask property -->
    <bool name="config_windowShowCircularMask">false</bool>
+3 −1
Original line number Diff line number Diff line
@@ -61,6 +61,7 @@ import com.android.internal.annotations.VisibleForTesting;
import com.android.internal.policy.TransitionAnimation;
import com.android.internal.protolog.common.ProtoLog;
import com.android.server.wm.utils.InsetUtils;
import com.android.window.flags.Flags;

import java.io.PrintWriter;
import java.util.ArrayList;
@@ -901,7 +902,8 @@ class BackNavigationController {
            mWindowManagerService = wms;
            final Context context = wms.mContext;
            mShowWindowlessSurface = context.getResources().getBoolean(
                    com.android.internal.R.bool.config_predictShowStartingSurface);
                    com.android.internal.R.bool.config_predictShowStartingSurface)
                    && Flags.activitySnapshotByDefault();
        }
        private static final int UNKNOWN = 0;
        private static final int TASK_SWITCH = 1;