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

Commit b0ac1dba authored by Ming-Shin Lu's avatar Ming-Shin Lu Committed by Automerger Merge Worker
Browse files

Merge "Modify TaskSnapshotWindow#scheduleRemove" into sc-qpr1-dev am:...

Merge "Modify TaskSnapshotWindow#scheduleRemove" into sc-qpr1-dev am: d820697e am: e730ad6e am: ed485b70

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15896148

Change-Id: I141ffc4dc2bbb6b8fc8a58187f3367eeb31c4d89
parents edc445f0 ed485b70
Loading
Loading
Loading
Loading
+7 −0
Original line number Diff line number Diff line
@@ -16,6 +16,7 @@

package com.android.wm.shell.startingsurface;

import static android.app.WindowConfiguration.ACTIVITY_TYPE_HOME;
import static android.graphics.Color.WHITE;
import static android.graphics.Color.alpha;
import static android.os.Trace.TRACE_TAG_WINDOW_MANAGER;
@@ -314,6 +315,12 @@ public class TaskSnapshotWindow {
    }

    void scheduleRemove(Runnable onRemove) {
        // Show the latest content as soon as possible for unlocking to home.
        if (mActivityType == ACTIVITY_TYPE_HOME) {
            removeImmediately();
            onRemove.run();
            return;
        }
        if (mScheduledRunnable != null) {
            mSplashScreenExecutor.removeCallbacks(mScheduledRunnable);
            mScheduledRunnable = null;