Remove legacy involveSplitScreen API
The onSplitScreenInvoked was used to notify system ui to reset the divider position before entering split screen. With SplitScreenTaskOrganizer, WM Shell library could know the exact time when entering/leaving split screen mode. Removes the legacy API and resets divider position when leaving split screen mode. Fix: 168869136 Test: atest WMShellTests Test: atest SystemUITests Test: manual check recents and split screen behavior Change-Id: Id14925619d1ec7c014a3e306fd99ec3734f227da
This commit is contained in:
@@ -113,17 +113,6 @@ public class SystemUiProxy implements ISystemUiProxy {
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onSplitScreenInvoked() {
|
||||
if (mSystemUiProxy != null) {
|
||||
try {
|
||||
mSystemUiProxy.onSplitScreenInvoked();
|
||||
} catch (RemoteException e) {
|
||||
Log.w(TAG, "Failed call onSplitScreenInvoked", e);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onOverviewShown(boolean fromHome) {
|
||||
onOverviewShown(fromHome, TAG);
|
||||
|
||||
@@ -228,7 +228,6 @@ public interface TaskShortcutFactory {
|
||||
|
||||
@Override
|
||||
protected boolean onActivityStarted(BaseDraggingActivity activity) {
|
||||
SystemUiProxy.INSTANCE.get(activity).onSplitScreenInvoked();
|
||||
activity.getUserEventDispatcher().logActionOnControl(TAP,
|
||||
LauncherLogProto.ControlType.SPLIT_SCREEN_TARGET);
|
||||
return true;
|
||||
|
||||
Reference in New Issue
Block a user