Merge "Set the layoutPreference not selectable"

This commit is contained in:
TreeHugger Robot
2018-10-03 00:23:42 +00:00
committed by Android (Google) Code Review

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,