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

Commit 3c6cf129 authored by Bill Lin's avatar Bill Lin
Browse files

1/ Set Swipe bottom for notification OFF by default

Note:
1) The "Swipe bottom for notification" will still available
   in Settings
2) If user had ever turn ON this settings, then we will NOT help
user change() any setting for this purpose.

Test: facory reset and observe the default function if OFF
Test: atest WMShellUnitTests
Bug: 182711813
Change-Id: Iaea9c31e263d4b86096aeecf5287c7c738a5c69e
parent 043d7139
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -126,7 +126,7 @@ public final class OneHandedSettingsUtil {
     */
    public boolean getSettingsSwipeToNotificationEnabled(ContentResolver resolver) {
        return Settings.Secure.getInt(resolver,
                Settings.Secure.SWIPE_BOTTOM_TO_NOTIFICATION_ENABLED, 1) == 1;
                Settings.Secure.SWIPE_BOTTOM_TO_NOTIFICATION_ENABLED, 0 /* Default OFF */) == 1;
    }

    void dump(PrintWriter pw, String prefix, ContentResolver resolver) {
+1 −1
Original line number Diff line number Diff line
@@ -242,7 +242,7 @@
    <bool name="def_hdmiControlAutoDeviceOff">true</bool>

    <!-- Default for Settings.Secure.SWIPE_BOTTOM_TO_NOTIFICATION_ENABLED -->
    <bool name="def_swipe_bottom_to_notification_enabled">true</bool>
    <bool name="def_swipe_bottom_to_notification_enabled">false</bool>

    <!-- Default for Settings.Secure.ONE_HANDED_MODE_ENABLED -->
    <bool name="def_one_handed_mode_enabled">false</bool>