TaskbarManager now sets TaskbarUIController for RecentsWindowManager
- FallbackTaskbarUIController can take in a generic RecentsViewContainer parameter, i.e. RecentsActivity or RecentsWindowManager. - When changing Overview targets to RecentsWindowManager, which is not an Activity, we still update the TaskbarUIController Test: Switch between default Home activities with the flag on and off, ensure Taskbar works as expected in each case (3P vs 1P launcher). Flag: com.android.launcher3.enable_fallback_overview_in_window Fixes: 368030750 Fixes: 365775636 Change-Id: Ife775e8c226f8c73ec9e1f97b4a6f2972f6c905f
This commit is contained in:
1 parent
e6b473a284
commit
87455f28fc
8 files changed
+99
-33
No files matched your search
@@ -776,10 +776,13 @@ public class TouchInteractionService extends Service {
|
||||
mAllAppsActionManager.setHomeAndOverviewSame(isHomeAndOverviewSame);
|
||||
RecentsViewContainer newOverviewContainer =
|
||||
mOverviewComponentObserver.getContainerInterface().getCreatedContainer();
|
||||
if (newOverviewContainer != null
|
||||
&& newOverviewContainer instanceof StatefulActivity activity) {
|
||||
//TODO(b/368030750) refactor taskbarManager to accept RecentsViewContainer
|
||||
mTaskbarManager.setActivity(activity);
|
||||
if (newOverviewContainer != null) {
|
||||
if (newOverviewContainer instanceof StatefulActivity activity) {
|
||||
// This will also call setRecentsViewContainer() internally.
|
||||
mTaskbarManager.setActivity(activity);
|
||||
} else {
|
||||
mTaskbarManager.setRecentsViewContainer(newOverviewContainer);
|
||||
}
|
||||
}
|
||||
mTISBinder.onOverviewTargetChange();
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user