Misc cleanup on AndroidManifest.xml
- Add a few activities to widget list. These are more commonly used settings, so adding them to widget list for easier access. - Storage - System - About phone - Remove useless intent-filters from AndroidManifest. - If the intent-filter is just action MAIN and category DEFAULT, it doesn't do anything. Bug: 74806595 Test: visual Change-Id: I5d80bc6c88f7bf60adabac872e92b72b341b97e6
This commit is contained in:
@@ -173,8 +173,12 @@ public class DeviceAdminListPreferenceController extends BasePreferenceControlle
|
||||
final Context prefContext = mPreferenceGroup.getContext();
|
||||
final int childrenCount = mPreferenceGroup.getPreferenceCount();
|
||||
for (int i = 0; i < childrenCount; i++) {
|
||||
SwitchPreference pref = (SwitchPreference) mPreferenceGroup.getPreference(i);
|
||||
preferenceCache.put(pref.getKey(), pref);
|
||||
final Preference pref = mPreferenceGroup.getPreference(i);
|
||||
if (!(pref instanceof SwitchPreference)) {
|
||||
continue;
|
||||
}
|
||||
final SwitchPreference appSwitch = (SwitchPreference) pref;
|
||||
preferenceCache.put(appSwitch.getKey(), appSwitch);
|
||||
}
|
||||
for (DeviceAdminListItem item : mAdmins) {
|
||||
final String key = item.getKey();
|
||||
|
||||
Reference in New Issue
Block a user