Add overview taskbar split support for 3P launcher
* Created b/268120202 to track other states of split selection that are unhandled on 3P launchers Test: Able to initiate split in overview with 3P launcher Fixes: 264576761 Change-Id: I0311fe83380bf914fa79956b2565b61cc5eab916
This commit is contained in:
@@ -44,6 +44,17 @@ public class FallbackTaskbarUIController extends TaskbarUIController {
|
||||
getRecentsView().setTaskLaunchListener(toState == RecentsState.DEFAULT
|
||||
? (() -> animateToRecentsState(RecentsState.BACKGROUND_APP)) : null);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onStateTransitionComplete(RecentsState finalState) {
|
||||
boolean finalStateDefault = finalState == RecentsState.DEFAULT;
|
||||
// TODO(b/268120202) Taskbar shows up on 3P home, currently we don't go to
|
||||
// overview from 3P home. Either implement that or it'll change w/ contextual?
|
||||
boolean disallowLongClick = finalState == RecentsState.OVERVIEW_SPLIT_SELECT;
|
||||
Utilities.setOverviewDragState(mControllers,
|
||||
finalStateDefault /*disallowGlobalDrag*/, disallowLongClick,
|
||||
finalStateDefault /*allowInitialSplitSelection*/);
|
||||
}
|
||||
};
|
||||
|
||||
public FallbackTaskbarUIController(RecentsActivity recentsActivity) {
|
||||
|
||||
Reference in New Issue
Block a user