Move ManageAccountsSettings into Settings.
- Add activity-alias for the Activity. - Copy the Activity from AccountsAndSyncSettings. - Fragmentize ManageAccountsSettings. - Remove dependency toward AccountPreferenceBase, which is used in AccountsAndSyncSettings widely. - Add missing implementation derived from AccountPrefernceBase. - Copy dependent drawables. - Copy dependent xmls - Copy AccountPrefernce.java. - Copy strings, adding CHAR LIMIT. - Remove the logic which remove the preference when its destination Activity is missing. We already have the destination as Fragment, and it never disappear. Change-Id: Id41c63d7064aebeaae31bcd84bf4fd20a5636dfe
This commit is contained in:
@@ -235,8 +235,6 @@ public class Settings extends Activity
|
||||
private void updatePreferenceList() {
|
||||
final Activity activity = getActivity();
|
||||
PreferenceGroup parent = (PreferenceGroup) findPreference(KEY_PARENT);
|
||||
Utils.updatePreferenceToSpecificActivityOrRemove(activity, parent,
|
||||
KEY_SYNC_SETTINGS, 0);
|
||||
Preference dockSettings = parent.findPreference(KEY_DOCK_SETTINGS);
|
||||
if (activity.getResources().getBoolean(R.bool.has_dock_settings) == false
|
||||
&& dockSettings != null) {
|
||||
|
||||
Reference in New Issue
Block a user