From be2dc65f08d428d8d0d111662cb023b9ff5b74f0 Mon Sep 17 00:00:00 2001 From: Steven Ng Date: Wed, 23 Jun 2021 23:05:27 +0100 Subject: [PATCH 1/2] Refine all apps tabs alignment & remove ripple effect from tabs Test: Open all apps and observe the position of tabs alignment. Click a tab and observe the fade in color effect. Fix: 191387242 Change-Id: Ie23a092268ce62eba29059eb5bd266a46ca652a5 --- res/drawable/all_apps_tabs_background.xml | 14 +++++--------- .../launcher3/allapps/AllAppsRecyclerView.java | 4 ++-- .../launcher3/allapps/FloatingHeaderView.java | 10 ++++++++-- 3 files changed, 15 insertions(+), 13 deletions(-) diff --git a/res/drawable/all_apps_tabs_background.xml b/res/drawable/all_apps_tabs_background.xml index bf7ee8c20c..aea2e7a98b 100644 --- a/res/drawable/all_apps_tabs_background.xml +++ b/res/drawable/all_apps_tabs_background.xml @@ -14,18 +14,14 @@ limitations under the License. --> + android:enterFadeDuration="100"> - - - - - - - - + + + + Date: Thu, 24 Jun 2021 11:13:57 +0000 Subject: [PATCH 2/2] Hide overview on fold/unfold when live tile is active. Test: manual Fix: 184846394 Change-Id: I97ae328234bf0932712c7cf3ca97813cae7c46a7 --- .../android/launcher3/BaseQuickstepLauncher.java | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/quickstep/src/com/android/launcher3/BaseQuickstepLauncher.java b/quickstep/src/com/android/launcher3/BaseQuickstepLauncher.java index ef96c963bd..052e66267e 100644 --- a/quickstep/src/com/android/launcher3/BaseQuickstepLauncher.java +++ b/quickstep/src/com/android/launcher3/BaseQuickstepLauncher.java @@ -21,6 +21,7 @@ import static com.android.launcher3.LauncherState.FLAG_HIDE_BACK_BUTTON; import static com.android.launcher3.LauncherState.NORMAL; import static com.android.launcher3.LauncherState.NO_OFFSET; import static com.android.launcher3.model.data.ItemInfo.NO_MATCHING_ID; +import static com.android.launcher3.util.DisplayController.CHANGE_ACTIVE_SCREEN; import static com.android.launcher3.util.Executors.UI_HELPER_EXECUTOR; import static com.android.quickstep.SysUINavigationMode.Mode.TWO_BUTTONS; import static com.android.quickstep.util.NavigationModeFeatureFlag.LIVE_TILE; @@ -30,6 +31,7 @@ import android.animation.AnimatorSet; import android.animation.ValueAnimator; import android.app.ActivityOptions; import android.content.ComponentName; +import android.content.Context; import android.content.Intent; import android.content.IntentSender; import android.content.ServiceConnection; @@ -56,6 +58,7 @@ import com.android.launcher3.taskbar.TaskbarManager; import com.android.launcher3.taskbar.TaskbarStateHandler; import com.android.launcher3.uioverrides.RecentsViewStateController; import com.android.launcher3.util.ActivityOptionsWrapper; +import com.android.launcher3.util.DisplayController; import com.android.launcher3.util.IntSet; import com.android.launcher3.util.ObjectWrapper; import com.android.launcher3.util.UiThreadHelper; @@ -474,4 +477,15 @@ public abstract class BaseQuickstepLauncher extends Launcher public void setHintUserWillBeActive() { addActivityFlags(ACTIVITY_STATE_USER_WILL_BE_ACTIVE); } + + @Override + public void onDisplayInfoChanged(Context context, DisplayController.Info info, int flags) { + super.onDisplayInfoChanged(context, info, flags); + // When changing screens with live tile active, finish the recents animation to close + // overview as it should be an interim state + if ((flags & CHANGE_ACTIVE_SCREEN) != 0 && LIVE_TILE.get()) { + RecentsView recentsView = getOverviewPanel(); + recentsView.finishRecentsAnimation(/* toRecents= */ true, null); + } + } }