Make the preference not selectable

"Battery usage data isn't available" should not respond to taps

Bug: 69312966
Test: Manual test
Change-Id: Id450c5a6089a4fb78a5c48a0f460992dc89f49ec
This commit is contained in:
Yvonne Yang
2018-03-16 16:48:42 +08:00
parent cbf9300cd2
commit 7ac7d7b660

View File

@@ -482,6 +482,7 @@ public class BatteryAppListPreferenceController extends AbstractPreferenceContro
notAvailable = new Preference(mPrefContext);
notAvailable.setKey(NOT_AVAILABLE);
notAvailable.setTitle(R.string.power_usage_not_available);
notAvailable.setSelectable(false);
mAppListGroup.addPreference(notAvailable);
}
}