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

Commit 413ab9d5 authored by Jason Chang's avatar Jason Chang Committed by Bill Lin
Browse files

Fix one-handed mode tap app to exit doesn't work in factory boot

Root cause:
1. Design change "tap app to exit" -> always being true, and settings
remove this option.
2. Tuning performance, due to 1, no longer listens to the key change,
so we remove the listener.

Solution:
Change getSettingsTapsAppToExit() API to return default TRUE.

Bug: 195629000
Test: Build ROM and factory-reset to test
Test: atest WMShellUnitTests
Change-Id: Id3c265258ed28f7e0aa54505c339671885d28fa7
parent 9eee7d3f
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -130,7 +130,7 @@ public final class OneHandedSettingsUtil {
     */
    public boolean getSettingsTapsAppToExit(ContentResolver resolver, int userId) {
        return Settings.Secure.getIntForUser(resolver,
                Settings.Secure.TAPS_APP_TO_EXIT, 0, userId) == 1;
                Settings.Secure.TAPS_APP_TO_EXIT, 1, userId) == 1;
    }

    /**