Remove the setSelectable() in ShortcutPrefrence

- The title is grey color, not black color as excepted
- The voice access issue is fixed by holder.itemView.setFocusable

Bug: 148989269
Test: manual test
Change-Id: Ie0d8a48cd87e0e28b2833641de265751f2fcfb8c
This commit is contained in:
menghanli
2020-03-26 13:53:44 +08:00
committed by Menghan Li
parent 0747e57f25
commit 250e54cdab

View File

@@ -64,7 +64,6 @@ public class ShortcutPreference extends Preference {
setLayoutResource(R.layout.accessibility_shortcut_secondary_action);
setWidgetLayoutResource(R.layout.preference_widget_master_switch);
setIconSpaceReserved(true);
setSelectable(false);
}
@Override
@@ -138,8 +137,6 @@ public class ShortcutPreference extends Preference {
public void setSettingsEditable(boolean enabled) {
if (mSettingsEditable != enabled) {
mSettingsEditable = enabled;
// Disable whole component to let each child component can be addressed.
setSelectable(!mSettingsEditable);
notifyChanged();
}
}