Loading quickstep/src/com/android/launcher3/taskbar/LauncherTaskbarUIController.java +3 −0 Original line number Diff line number Diff line Loading @@ -37,6 +37,7 @@ import com.android.quickstep.AnimatedFloat; import com.android.quickstep.RecentsAnimationCallbacks; import com.android.quickstep.RecentsAnimationCallbacks.RecentsAnimationListener; import com.android.quickstep.RecentsAnimationController; import com.android.quickstep.SystemUiProxy; import com.android.systemui.shared.recents.model.ThumbnailData; Loading Loading @@ -152,6 +153,8 @@ public class LauncherTaskbarUIController extends TaskbarUIController { TaskbarStashController stashController = mControllers.taskbarStashController; stashController.animateToIsStashed(stashController.isStashedInApp(), duration); } SystemUiProxy.INSTANCE.get(mContext).notifyTaskbarStatus(!isResumed, mControllers.taskbarStashController.isStashedInApp()); } /** Loading quickstep/src/com/android/launcher3/taskbar/TaskbarManager.java +12 −8 Original line number Diff line number Diff line Loading @@ -36,6 +36,7 @@ import com.android.launcher3.util.DisplayController; import com.android.launcher3.util.DisplayController.Info; import com.android.quickstep.SysUINavigationMode; import com.android.quickstep.SysUINavigationMode.Mode; import com.android.quickstep.SystemUiProxy; import com.android.quickstep.TouchInteractionService; /** Loading Loading @@ -127,16 +128,19 @@ public class TaskbarManager implements DisplayController.DisplayInfoChangeListen private void recreateTaskbar() { destroyExistingTaskbar(); if (!FeatureFlags.ENABLE_TASKBAR.get()) { return; } if (!mUserUnlocked) { return; } DeviceProfile dp = LauncherAppState.getIDP(mContext).getDeviceProfile(mContext); if (!dp.isTaskbarPresent) { DeviceProfile dp = mUserUnlocked ? LauncherAppState.getIDP(mContext).getDeviceProfile(mContext) : null; boolean isTaskBarEnabled = FeatureFlags.ENABLE_TASKBAR.get() && dp != null && dp.isTaskbarPresent; if (!isTaskBarEnabled) { SystemUiProxy.INSTANCE.get(mContext) .notifyTaskbarStatus(/* visible */ false, /* stashed */ false); return; } mTaskbarActivityContext = new TaskbarActivityContext( mContext, dp.copy(mContext), mNavButtonController); mTaskbarActivityContext.init(); Loading quickstep/src/com/android/launcher3/taskbar/TaskbarStashController.java +6 −0 Original line number Diff line number Diff line Loading @@ -28,6 +28,7 @@ import com.android.launcher3.R; import com.android.launcher3.Utilities; import com.android.launcher3.util.MultiValueAlpha.AlphaProperty; import com.android.quickstep.AnimatedFloat; import com.android.quickstep.SystemUiProxy; /** * Coordinates between controllers such as TaskbarViewController and StashedHandleViewController to Loading Loading @@ -104,6 +105,9 @@ public class TaskbarStashController { mIsStashedInApp = supportsStashing() && mPrefs.getBoolean(SHARED_PREFS_STASHED_KEY, DEFAULT_STASHED_PREF); SystemUiProxy.INSTANCE.get(mActivity) .notifyTaskbarStatus(/* visible */ true, /* stashed */ mIsStashedInApp); } /** Loading Loading @@ -166,6 +170,8 @@ public class TaskbarStashController { mPrefs.edit().putBoolean(SHARED_PREFS_STASHED_KEY, mIsStashedInApp).apply(); boolean isStashed = mIsStashedInApp; if (wasStashed != isStashed) { SystemUiProxy.INSTANCE.get(mActivity) .notifyTaskbarStatus(/* visible */ true, /* stashed */ isStashed); createAnimToIsStashed(isStashed, TASKBAR_STASH_DURATION).start(); return true; } Loading quickstep/src/com/android/quickstep/SystemUiProxy.java +12 −0 Original line number Diff line number Diff line Loading @@ -399,6 +399,18 @@ public class SystemUiProxy implements ISystemUiProxy, } } @Override public void notifyTaskbarStatus(boolean visible, boolean stashed) { if (mSystemUiProxy != null) { try { mSystemUiProxy.notifyTaskbarStatus(visible, stashed); } catch (RemoteException e) { Log.w(TAG, "Failed call notifyTaskbarStatus with arg: " + visible + ", " + stashed, e); } } } @Override public void handleImageBundleAsScreenshot(Bundle screenImageBundle, Rect locationInScreen, Insets visibleInsets, Task.TaskKey task) { Loading quickstep/src/com/android/quickstep/views/RecentsView.java +6 −8 Original line number Diff line number Diff line Loading @@ -2495,14 +2495,11 @@ public abstract class RecentsView<ACTIVITY_TYPE extends StatefulActivity<STATE_T resetTaskVisuals(); int pageToSnapTo = mCurrentPage; if ((dismissedIndex < pageToSnapTo && !showAsGrid) || pageToSnapTo == taskCount - 1) { pageToSnapTo -= 1; if (finalNextFocusedTaskView != null) { pageToSnapTo = indexOfChild(finalNextFocusedTaskView); } if (showAsGrid) { int primaryScroll = mOrientationHandler.getPrimaryScroll(RecentsView.this); int currentPageScroll = getScrollForPage(pageToSnapTo); mCurrentPageScrollDiff = primaryScroll - currentPageScroll; if (dismissedIndex < pageToSnapTo || pageToSnapTo == (taskCount - 1)) { pageToSnapTo -= 1; } removeViewInLayout(dismissedTaskView); mTopRowIdSet.remove(dismissedTaskId); Loading @@ -2516,11 +2513,12 @@ public abstract class RecentsView<ACTIVITY_TYPE extends StatefulActivity<STATE_T mFocusedTaskId = finalNextFocusedTaskView.getTaskId(); mTopRowIdSet.remove(mFocusedTaskId); finalNextFocusedTaskView.animateIconScaleAndDimIntoView(); setCurrentPage(pageToSnapTo); } updateTaskSize(true); // Update scroll and snap to page. updateScrollSynchronously(); setCurrentPage(pageToSnapTo); snapToPageImmediately(pageToSnapTo); dispatchScrollChanged(); } } Loading Loading
quickstep/src/com/android/launcher3/taskbar/LauncherTaskbarUIController.java +3 −0 Original line number Diff line number Diff line Loading @@ -37,6 +37,7 @@ import com.android.quickstep.AnimatedFloat; import com.android.quickstep.RecentsAnimationCallbacks; import com.android.quickstep.RecentsAnimationCallbacks.RecentsAnimationListener; import com.android.quickstep.RecentsAnimationController; import com.android.quickstep.SystemUiProxy; import com.android.systemui.shared.recents.model.ThumbnailData; Loading Loading @@ -152,6 +153,8 @@ public class LauncherTaskbarUIController extends TaskbarUIController { TaskbarStashController stashController = mControllers.taskbarStashController; stashController.animateToIsStashed(stashController.isStashedInApp(), duration); } SystemUiProxy.INSTANCE.get(mContext).notifyTaskbarStatus(!isResumed, mControllers.taskbarStashController.isStashedInApp()); } /** Loading
quickstep/src/com/android/launcher3/taskbar/TaskbarManager.java +12 −8 Original line number Diff line number Diff line Loading @@ -36,6 +36,7 @@ import com.android.launcher3.util.DisplayController; import com.android.launcher3.util.DisplayController.Info; import com.android.quickstep.SysUINavigationMode; import com.android.quickstep.SysUINavigationMode.Mode; import com.android.quickstep.SystemUiProxy; import com.android.quickstep.TouchInteractionService; /** Loading Loading @@ -127,16 +128,19 @@ public class TaskbarManager implements DisplayController.DisplayInfoChangeListen private void recreateTaskbar() { destroyExistingTaskbar(); if (!FeatureFlags.ENABLE_TASKBAR.get()) { return; } if (!mUserUnlocked) { return; } DeviceProfile dp = LauncherAppState.getIDP(mContext).getDeviceProfile(mContext); if (!dp.isTaskbarPresent) { DeviceProfile dp = mUserUnlocked ? LauncherAppState.getIDP(mContext).getDeviceProfile(mContext) : null; boolean isTaskBarEnabled = FeatureFlags.ENABLE_TASKBAR.get() && dp != null && dp.isTaskbarPresent; if (!isTaskBarEnabled) { SystemUiProxy.INSTANCE.get(mContext) .notifyTaskbarStatus(/* visible */ false, /* stashed */ false); return; } mTaskbarActivityContext = new TaskbarActivityContext( mContext, dp.copy(mContext), mNavButtonController); mTaskbarActivityContext.init(); Loading
quickstep/src/com/android/launcher3/taskbar/TaskbarStashController.java +6 −0 Original line number Diff line number Diff line Loading @@ -28,6 +28,7 @@ import com.android.launcher3.R; import com.android.launcher3.Utilities; import com.android.launcher3.util.MultiValueAlpha.AlphaProperty; import com.android.quickstep.AnimatedFloat; import com.android.quickstep.SystemUiProxy; /** * Coordinates between controllers such as TaskbarViewController and StashedHandleViewController to Loading Loading @@ -104,6 +105,9 @@ public class TaskbarStashController { mIsStashedInApp = supportsStashing() && mPrefs.getBoolean(SHARED_PREFS_STASHED_KEY, DEFAULT_STASHED_PREF); SystemUiProxy.INSTANCE.get(mActivity) .notifyTaskbarStatus(/* visible */ true, /* stashed */ mIsStashedInApp); } /** Loading Loading @@ -166,6 +170,8 @@ public class TaskbarStashController { mPrefs.edit().putBoolean(SHARED_PREFS_STASHED_KEY, mIsStashedInApp).apply(); boolean isStashed = mIsStashedInApp; if (wasStashed != isStashed) { SystemUiProxy.INSTANCE.get(mActivity) .notifyTaskbarStatus(/* visible */ true, /* stashed */ isStashed); createAnimToIsStashed(isStashed, TASKBAR_STASH_DURATION).start(); return true; } Loading
quickstep/src/com/android/quickstep/SystemUiProxy.java +12 −0 Original line number Diff line number Diff line Loading @@ -399,6 +399,18 @@ public class SystemUiProxy implements ISystemUiProxy, } } @Override public void notifyTaskbarStatus(boolean visible, boolean stashed) { if (mSystemUiProxy != null) { try { mSystemUiProxy.notifyTaskbarStatus(visible, stashed); } catch (RemoteException e) { Log.w(TAG, "Failed call notifyTaskbarStatus with arg: " + visible + ", " + stashed, e); } } } @Override public void handleImageBundleAsScreenshot(Bundle screenImageBundle, Rect locationInScreen, Insets visibleInsets, Task.TaskKey task) { Loading
quickstep/src/com/android/quickstep/views/RecentsView.java +6 −8 Original line number Diff line number Diff line Loading @@ -2495,14 +2495,11 @@ public abstract class RecentsView<ACTIVITY_TYPE extends StatefulActivity<STATE_T resetTaskVisuals(); int pageToSnapTo = mCurrentPage; if ((dismissedIndex < pageToSnapTo && !showAsGrid) || pageToSnapTo == taskCount - 1) { pageToSnapTo -= 1; if (finalNextFocusedTaskView != null) { pageToSnapTo = indexOfChild(finalNextFocusedTaskView); } if (showAsGrid) { int primaryScroll = mOrientationHandler.getPrimaryScroll(RecentsView.this); int currentPageScroll = getScrollForPage(pageToSnapTo); mCurrentPageScrollDiff = primaryScroll - currentPageScroll; if (dismissedIndex < pageToSnapTo || pageToSnapTo == (taskCount - 1)) { pageToSnapTo -= 1; } removeViewInLayout(dismissedTaskView); mTopRowIdSet.remove(dismissedTaskId); Loading @@ -2516,11 +2513,12 @@ public abstract class RecentsView<ACTIVITY_TYPE extends StatefulActivity<STATE_T mFocusedTaskId = finalNextFocusedTaskView.getTaskId(); mTopRowIdSet.remove(mFocusedTaskId); finalNextFocusedTaskView.animateIconScaleAndDimIntoView(); setCurrentPage(pageToSnapTo); } updateTaskSize(true); // Update scroll and snap to page. updateScrollSynchronously(); setCurrentPage(pageToSnapTo); snapToPageImmediately(pageToSnapTo); dispatchScrollChanged(); } } Loading