Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 243337fc authored by Bill Lin's avatar Bill Lin
Browse files

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
parent 5b9b66e8
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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();