Fix crash when rotating screen in a few screens.
Bug: 26946312 Fixed in the following screens: Apps > Gear > Special Access > Modify system settings Apps > Gear > Special Access > Draw over other apps Apps > Gear > Special Access > Apps with usage access Language & input > Personal dictionary Wireless & networks (More) > Android Beam Change-Id: I0b9bd6c19f710302625dd87989e9d4ce3c96a9a2
This commit is contained in:
@@ -260,17 +260,14 @@ public class ManageApplications extends InstrumentedFragment
|
||||
mSortOrder = R.id.sort_order_size;
|
||||
} else if (className.equals(UsageAccessSettingsActivity.class.getName())) {
|
||||
mListType = LIST_TYPE_USAGE_ACCESS;
|
||||
getActivity().getActionBar().setTitle(R.string.usage_access_title);
|
||||
} else if (className.equals(HighPowerApplicationsActivity.class.getName())) {
|
||||
mListType = LIST_TYPE_HIGH_POWER;
|
||||
// Default to showing system.
|
||||
mShowSystem = true;
|
||||
} else if (className.equals(OverlaySettingsActivity.class.getName())) {
|
||||
mListType = LIST_TYPE_OVERLAY;
|
||||
getActivity().getActionBar().setTitle(R.string.system_alert_window_access_title);
|
||||
} else if (className.equals(WriteSettingsActivity.class.getName())) {
|
||||
mListType = LIST_TYPE_WRITE_SETTINGS;
|
||||
getActivity().getActionBar().setTitle(R.string.write_settings_title);
|
||||
} else {
|
||||
mListType = LIST_TYPE_MAIN;
|
||||
}
|
||||
|
Reference in New Issue
Block a user