Set the layoutPreference not selectable

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

Change-Id: Ie5d97f91d32ab7db1f1cec308521e7327d1fbaa4
Fixes: 116666315
Test: Manual
This commit is contained in:
jackqdyulei
2018-09-26 15:41:40 -07:00
parent 092f66b279
commit e04daba671

View File

@@ -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,