From 2d2e34cf81b812dc4cce7e6b286565cfdbcaaa9f Mon Sep 17 00:00:00 2001 From: Tiger Date: Mon, 13 Feb 2023 20:21:33 +0800 Subject: [PATCH] Use insetsRoundedCornerFrame to check if taskbar is expanded or not When taskbar is expanded, insetsRoundedCornerFrame will be set to true via LayoutParams. We can adjust animation bounds or crop the taskbar surface based on the insetsRoundedCornerFrame. In this way, the insets types in TaskTransitionSpec can be removed. This is a step to remove ITYPEs. Bug: 234093736 Test: atest LetterboxUiControllerTest SizeCompatTests Change-Id: Ibffd5beaf49f3196356b140938c4b2c8cc9d424e --- .../launcher3/taskbar/LauncherTaskbarUIController.java | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/quickstep/src/com/android/launcher3/taskbar/LauncherTaskbarUIController.java b/quickstep/src/com/android/launcher3/taskbar/LauncherTaskbarUIController.java index a12f169b66..be4d378346 100644 --- a/quickstep/src/com/android/launcher3/taskbar/LauncherTaskbarUIController.java +++ b/quickstep/src/com/android/launcher3/taskbar/LauncherTaskbarUIController.java @@ -15,8 +15,6 @@ */ package com.android.launcher3.taskbar; -import static android.view.InsetsState.ITYPE_EXTRA_NAVIGATION_BAR; - import static com.android.launcher3.QuickstepTransitionManager.TRANSIENT_TASKBAR_TRANSITION_DURATION; import static com.android.launcher3.config.FeatureFlags.ENABLE_TASKBAR_EDU_TOOLTIP; import static com.android.launcher3.statemanager.BaseState.FLAG_NON_INTERACTIVE; @@ -55,7 +53,6 @@ import com.android.quickstep.util.GroupTask; import com.android.quickstep.views.RecentsView; import java.io.PrintWriter; -import java.util.Set; /** * A data source which integrates with a Launcher instance @@ -244,8 +241,7 @@ public class LauncherTaskbarUIController extends TaskbarUIController { : mLauncher.getColor(R.color.taskbar_background); TaskTransitionSpec customTaskAnimationSpec = new TaskTransitionSpec( - taskAnimationBackgroundColor, - Set.of(ITYPE_EXTRA_NAVIGATION_BAR) + taskAnimationBackgroundColor ); WindowManagerGlobal.getWindowManagerService() .setTaskTransitionSpec(customTaskAnimationSpec);