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

Commit e04daba6 authored by jackqdyulei's avatar jackqdyulei
Browse files

Set the layoutPreference not selectable

In this way it won't yell out "Double-tap to activate"

Change-Id: Ie5d97f91d32ab7db1f1cec308521e7327d1fbaa4
Fixes: 116666315
Test: Manual
parent 092f66b2
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -65,6 +65,7 @@ public class BlockPreferenceController extends NotificationPreferenceController

    public void updateState(Preference preference) {
        LayoutPreference pref = (LayoutPreference) preference;
        pref.setSelectable(false);
        SwitchBar bar = pref.findViewById(R.id.switch_bar);
        if (bar != null) {
            bar.setSwitchBarText(R.string.notification_switch_label,