Making navigation mode listener a singleton so that the change is dispatched

everywhere synchronously.

Change-Id: Iee8c5957d78dfad3fb03e814de0367adcaa0c98b
This commit is contained in:
Sunny Goyal
2019-03-28 15:35:32 -07:00
parent 814b615b62
commit 5743f8635b
15 changed files with 174 additions and 209 deletions

View File

@@ -22,6 +22,7 @@ import android.os.CancellationSignal;
import com.android.launcher3.Launcher;
import com.android.launcher3.LauncherStateManager.StateHandler;
import com.android.launcher3.dragndrop.DragLayer;
import com.android.launcher3.util.TouchController;
import java.io.PrintWriter;
@@ -33,7 +34,9 @@ public class UiFactory {
launcher.getDragController(), new AllAppsSwipeController(launcher)};
}
public static void setOnTouchControllersChangedListener(Context context, Runnable listener) { }
public static Runnable enableLiveTouchControllerChanges(DragLayer dl) {
return null;
}
public static StateHandler[] getStateHandler(Launcher launcher) {
return new StateHandler[] {