Loading quickstep/src/com/android/launcher3/taskbar/TaskbarUIController.java +11 −0 Original line number Diff line number Diff line Loading @@ -75,4 +75,15 @@ public class TaskbarUIController { public void hideAllApps() { mControllers.taskbarAllAppsController.hide(); } /** * User expands PiP to full-screen (or split-screen) mode, try to hide the Taskbar. */ public void onExpandPip() { if (mControllers != null) { final TaskbarStashController stashController = mControllers.taskbarStashController; stashController.updateStateForFlag(TaskbarStashController.FLAG_IN_APP, true); stashController.applyState(); } } } quickstep/src/com/android/quickstep/views/RecentsView.java +13 −0 Original line number Diff line number Diff line Loading @@ -5104,6 +5104,19 @@ public abstract class RecentsView<ACTIVITY_TYPE extends StatefulActivity<STATE_T mRecentsView.mPipCornerRadius = cornerRadius; } } @Override public void onExpandPip() { MAIN_EXECUTOR.execute(() -> { if (mRecentsView == null || mRecentsView.mSizeStrategy.getTaskbarController() == null) { return; } // Hide the task bar when leaving PiP to prevent it from flickering once // the app settles in full-screen mode. mRecentsView.mSizeStrategy.getTaskbarController().onExpandPip(); }); } } /** Get the color used for foreground scrimming the RecentsView for sharing. */ Loading Loading
quickstep/src/com/android/launcher3/taskbar/TaskbarUIController.java +11 −0 Original line number Diff line number Diff line Loading @@ -75,4 +75,15 @@ public class TaskbarUIController { public void hideAllApps() { mControllers.taskbarAllAppsController.hide(); } /** * User expands PiP to full-screen (or split-screen) mode, try to hide the Taskbar. */ public void onExpandPip() { if (mControllers != null) { final TaskbarStashController stashController = mControllers.taskbarStashController; stashController.updateStateForFlag(TaskbarStashController.FLAG_IN_APP, true); stashController.applyState(); } } }
quickstep/src/com/android/quickstep/views/RecentsView.java +13 −0 Original line number Diff line number Diff line Loading @@ -5104,6 +5104,19 @@ public abstract class RecentsView<ACTIVITY_TYPE extends StatefulActivity<STATE_T mRecentsView.mPipCornerRadius = cornerRadius; } } @Override public void onExpandPip() { MAIN_EXECUTOR.execute(() -> { if (mRecentsView == null || mRecentsView.mSizeStrategy.getTaskbarController() == null) { return; } // Hide the task bar when leaving PiP to prevent it from flickering once // the app settles in full-screen mode. mRecentsView.mSizeStrategy.getTaskbarController().onExpandPip(); }); } } /** Get the color used for foreground scrimming the RecentsView for sharing. */ Loading