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

Commit f36321fc authored by Tracy Zhou's avatar Tracy Zhou
Browse files

Change RecentsAnimationListenerSet interface

Instead of passing a boolean value signaling whether to defer with
screenshot, we want to pass the actual screenshot to Launcher if that's
the case. Another change will follow to implement passing the screenshot
from the window manager.

Bug: 138683199
Test: N/A
Change-Id: If5956436641aa35ffac3122fb53d13366552e0f1
parent 1edecabc
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -236,7 +236,8 @@ public class ActivityManagerWrapper {

                    @Override
                    public void onAnimationCanceled(boolean deferredWithScreenshot) {
                        animationHandler.onAnimationCanceled(deferredWithScreenshot);
                        animationHandler.onAnimationCanceled(
                                deferredWithScreenshot ? new ThumbnailData() : null);
                    }
                };
            }
+3 −1
Original line number Diff line number Diff line
@@ -18,6 +18,8 @@ package com.android.systemui.shared.system;

import android.graphics.Rect;

import com.android.systemui.shared.recents.model.ThumbnailData;

public interface RecentsAnimationListener {

    /**
@@ -29,5 +31,5 @@ public interface RecentsAnimationListener {
    /**
     * Called when the animation into Recents was canceled. This call is made on the binder thread.
     */
    void onAnimationCanceled(boolean deferredWithScreenshot);
    void onAnimationCanceled(ThumbnailData thumbnailData);
}