Initial commit of 3 button work

Home, Back and Recents basic functionality working

Fixes: 180046394
Change-Id: Ifc5c767e35e88183500d14d14736eb40df436369
This commit is contained in:
Vinit Nayak
2021-03-25 12:31:23 -07:00
parent 13e4618b57
commit 16fd85629d
10 changed files with 339 additions and 10 deletions
@@ -259,6 +259,7 @@ public class TouchInteractionService extends Service implements PluginListener<O
};
private static boolean sConnected = false;
private static TouchInteractionService sInstance;
private static boolean sIsInitialized = false;
private RotationTouchHelper mRotationTouchHelper;
@@ -266,6 +267,11 @@ public class TouchInteractionService extends Service implements PluginListener<O
return sConnected;
}
@Nullable
public static TouchInteractionService getInstance() {
return sInstance;
}
public static boolean isInitialized() {
return sIsInitialized;
}
@@ -293,6 +299,10 @@ public class TouchInteractionService extends Service implements PluginListener<O
private DisplayManager mDisplayManager;
public TouchInteractionService() {
sInstance = this;
}
@Override
public void onCreate() {
super.onCreate();
@@ -389,6 +399,10 @@ public class TouchInteractionService extends Service implements PluginListener<O
onOverviewTargetChange(mOverviewComponentObserver.isHomeAndOverviewSame());
}
public OverviewCommandHelper getOverviewCommandHelper() {
return mOverviewCommandHelper;
}
private void resetHomeBounceSeenOnQuickstepEnabledFirstTime() {
if (!mDeviceState.isUserUnlocked() || mDeviceState.isButtonNavMode()) {
// Skip if not yet unlocked (can't read user shared prefs) or if the current navigation