Always use INSIDE_TO_OUTSIDE scope when swiping to home in tablets

- In tablets user is either in home screen or there is a taskbar on screen, so swipe to home will always touches the launcher

Bug: 193653850
Test: StartLauncherViaGestureTests
Change-Id: Id1b05708324302eb4b4c2d623ca9fe27090188fc
This commit is contained in:
Alex Chau
2021-07-21 14:52:01 +01:00
parent 015ab224f4
commit 2450adf56f
3 changed files with 4 additions and 51 deletions
@@ -67,7 +67,6 @@ import androidx.annotation.BinderThread;
import androidx.annotation.NonNull;
import androidx.annotation.Nullable;
import androidx.annotation.UiThread;
import androidx.annotation.VisibleForTesting;
import androidx.annotation.WorkerThread;
import com.android.launcher3.BaseDraggingActivity;
@@ -302,7 +301,6 @@ public class TouchInteractionService extends Service implements PluginListener<O
private static boolean sConnected = false;
private static boolean sIsInitialized = false;
private static TouchInteractionService sInstance;
private RotationTouchHelper mRotationTouchHelper;
public static boolean isConnected() {
@@ -313,15 +311,6 @@ public class TouchInteractionService extends Service implements PluginListener<O
return sIsInitialized;
}
@VisibleForTesting
@Nullable
public static TaskbarManager getTaskbarManagerForTesting() {
if (sInstance == null) {
return null;
}
return sInstance.mTaskbarManager;
}
private final AbsSwipeUpHandler.Factory mLauncherSwipeHandlerFactory =
this::createLauncherSwipeHandler;
private final AbsSwipeUpHandler.Factory mFallbackSwipeHandlerFactory =
@@ -365,7 +354,6 @@ public class TouchInteractionService extends Service implements PluginListener<O
mDeviceState.runOnUserUnlocked(mTaskbarManager::onUserUnlocked);
ProtoTracer.INSTANCE.get(this).add(this);
sConnected = true;
sInstance = this;
}
private void disposeEventHandlers() {
@@ -523,7 +511,6 @@ public class TouchInteractionService extends Service implements PluginListener<O
mTaskbarManager.destroy();
sConnected = false;
sInstance = null;
super.onDestroy();
}