mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-03-04 01:46:49 +00:00
Secondary split screen app will be next to the navigation bar (2/2)
Refactored docked position code into PhoneWindowManager to determine which side the docked app should go based on the position of the nav bar in landscape (as portrait will only have top). Fixed the split screen entrance animation for quick step's overview. Change-Id: I0035214cecb9c6403c59f4b938c2d1ae924f34b0 Fixes: 73250406 Test: play around with splitscreen and minimized mode
This commit is contained in:
Binary file not shown.
@@ -153,8 +153,13 @@ public class TaskSystemShortcut<T extends SystemShortcut> extends SystemShortcut
|
||||
AbstractFloatingView.closeOpenViews(activity, true,
|
||||
AbstractFloatingView.TYPE_ALL & ~AbstractFloatingView.TYPE_REBIND_SAFE);
|
||||
|
||||
final int navBarPosition = WindowManagerWrapper.getInstance().getNavBarPosition();
|
||||
if (navBarPosition == WindowManagerWrapper.NAV_BAR_POS_INVALID) {
|
||||
return;
|
||||
}
|
||||
boolean dockTopOrLeft = navBarPosition != WindowManagerWrapper.NAV_BAR_POS_LEFT;
|
||||
if (ActivityManagerWrapper.getInstance().startActivityFromRecents(taskId,
|
||||
ActivityOptionsCompat.makeSplitScreenOptions(true))) {
|
||||
ActivityOptionsCompat.makeSplitScreenOptions(dockTopOrLeft))) {
|
||||
ISystemUiProxy sysUiProxy = RecentsModel.getInstance(activity).getSystemUiProxy();
|
||||
try {
|
||||
sysUiProxy.onSplitScreenInvoked();
|
||||
|
||||
Reference in New Issue
Block a user