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:
Jerry Chang
2020-09-18 17:37:06 +08:00
parent 28d57f0c75
commit 44981eb88e
2 changed files with 0 additions and 12 deletions
@@ -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;