diff options
author | Dave Mankoff <mankoff@google.com> | 2021-04-22 10:43:28 -0400 |
---|---|---|
committer | Dave Mankoff <mankoff@google.com> | 2021-04-27 17:48:43 -0400 |
commit | 09f902878687e28b788f6b45906ae2de0a080b98 (patch) | |
tree | 8d60dcba1d98f8d6889b225ebd69e8f67705a791 /packages/SystemUI/src/com/android/systemui/Dependency.java | |
parent | 2d41f53291f67916bf8c9b01a9ceab7af7ec2e0e (diff) |
Recognize the Back Gesture in the FalsingManager.
Remove calls to Dependency.get from EdgeBackGestureHandler,
making it injectable.
Bug: 186011223
Test: manual
Change-Id: I3d5e6b27f6afa46dcee88b6818f0b19722181421
Diffstat (limited to 'packages/SystemUI/src/com/android/systemui/Dependency.java')
-rw-r--r-- | packages/SystemUI/src/com/android/systemui/Dependency.java | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/packages/SystemUI/src/com/android/systemui/Dependency.java b/packages/SystemUI/src/com/android/systemui/Dependency.java index cbfdce5d0c69..351ae8298ff4 100644 --- a/packages/SystemUI/src/com/android/systemui/Dependency.java +++ b/packages/SystemUI/src/com/android/systemui/Dependency.java @@ -54,6 +54,7 @@ import com.android.systemui.model.SysUiState; import com.android.systemui.navigationbar.NavigationBarController; import com.android.systemui.navigationbar.NavigationBarOverlayController; import com.android.systemui.navigationbar.NavigationModeController; +import com.android.systemui.navigationbar.gestural.EdgeBackGestureHandler; import com.android.systemui.plugins.ActivityStarter; import com.android.systemui.plugins.DarkIconDispatcher; import com.android.systemui.plugins.PluginDependencyProvider; @@ -356,6 +357,7 @@ public class Dependency { @Inject Lazy<TelephonyListenerManager> mTelephonyListenerManager; @Inject Lazy<SystemStatusAnimationScheduler> mSystemStatusAnimationSchedulerLazy; @Inject Lazy<PrivacyDotViewController> mPrivacyDotViewControllerLazy; + @Inject Lazy<EdgeBackGestureHandler> mEdgeBackGestureHandler; @Inject public Dependency() { @@ -568,6 +570,7 @@ public class Dependency { mProviders.put(SystemStatusAnimationScheduler.class, mSystemStatusAnimationSchedulerLazy::get); mProviders.put(PrivacyDotViewController.class, mPrivacyDotViewControllerLazy::get); + mProviders.put(EdgeBackGestureHandler.class, mEdgeBackGestureHandler::get); Dependency.setInstance(this); } |