From 7abf9aac39b84330c11973d3bcc5bd7e3385da84 Mon Sep 17 00:00:00 2001 From: Bill Lin Date: Mon, 22 Nov 2021 17:36:12 +0800 Subject: [PATCH] Fix logic error in WMShellBaseModule.java break OHM function There was a logic error in WMShellBaseModule.java while implement @DynamicOverride for WM-Shell features Test: atest WMShellUnitTests Test: manual enable OHM and trigger Bug: 206901301 Change-Id: I52732b962a0e6265b22bf9979c3ef7f4f61046c6 --- .../src/com/android/wm/shell/dagger/WMShellBaseModule.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/WindowManager/Shell/src/com/android/wm/shell/dagger/WMShellBaseModule.java b/libs/WindowManager/Shell/src/com/android/wm/shell/dagger/WMShellBaseModule.java index d239e56bfd696..6b622044d25da 100644 --- a/libs/WindowManager/Shell/src/com/android/wm/shell/dagger/WMShellBaseModule.java +++ b/libs/WindowManager/Shell/src/com/android/wm/shell/dagger/WMShellBaseModule.java @@ -337,7 +337,7 @@ public abstract class WMShellBaseModule { @Provides static Optional providesOneHandedController( @DynamicOverride Optional oneHandedController) { - if (!SystemProperties.getBoolean(SUPPORT_ONE_HANDED_MODE, false)) { + if (SystemProperties.getBoolean(SUPPORT_ONE_HANDED_MODE, false)) { return oneHandedController; } return Optional.empty();