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
This commit is contained in:
Bill Lin
2021-11-22 17:36:12 +08:00
parent 083bd48e19
commit 7abf9aac39

View File

@@ -337,7 +337,7 @@ public abstract class WMShellBaseModule {
@Provides
static Optional<OneHandedController> providesOneHandedController(
@DynamicOverride Optional<OneHandedController> oneHandedController) {
if (!SystemProperties.getBoolean(SUPPORT_ONE_HANDED_MODE, false)) {
if (SystemProperties.getBoolean(SUPPORT_ONE_HANDED_MODE, false)) {
return oneHandedController;
}
return Optional.empty();