Add a content overlay for auto-enter w/o a source hint rect

Bug: 184703546
Test: Swipe up from app with auto-enter but no source hint rect

Signed-off-by: Winson Chung <winsonc@google.com>
Change-Id: Ib6f03dc6b11d37c44d732c75adabf45d1795fefc
This commit is contained in:
Winson Chung
2021-04-06 22:54:40 -07:00
parent 4ff2f7697c
commit 8dbba26e76
5 changed files with 59 additions and 8 deletions
@@ -19,6 +19,7 @@ import static com.android.launcher3.util.Executors.MAIN_EXECUTOR;
import static com.android.launcher3.util.Executors.THREAD_POOL_EXECUTOR;
import static com.android.launcher3.util.Executors.UI_HELPER_EXECUTOR;
import android.view.SurfaceControl;
import android.window.PictureInPictureSurfaceTransaction;
import androidx.annotation.NonNull;
@@ -159,12 +160,15 @@ public class RecentsAnimationController {
* that animating Activity to PiP has completed and the associated task surface should be
* updated accordingly. This should be called before `finish`
* @param taskId for which the leash should be updated
* @param finishTransaction leash operations for the final transform.
* @param finishTransaction the transaction to transfer to the task surface control after the
* leash is removed
* @param overlay the surface control for an overlay being shown above the pip (can be null)
*/
public void setFinishTaskTransaction(int taskId,
PictureInPictureSurfaceTransaction finishTransaction) {
PictureInPictureSurfaceTransaction finishTransaction,
SurfaceControl overlay) {
UI_HELPER_EXECUTOR.execute(
() -> mController.setFinishTaskTransaction(taskId, finishTransaction));
() -> mController.setFinishTaskTransaction(taskId, finishTransaction, overlay));
}
/**