Loading res/values/cm_strings.xml +1 −0 Original line number Diff line number Diff line Loading @@ -47,6 +47,7 @@ <string name="profile_remove_dialog_message">Remove profile %1$s?</string> <string name="profile_populate_profile_from_state">Configure profile using current device settings?</string> <string name="profile_menu_fill_from_state">Import current device settings</string> <string name="profile_remove_current_profile">Cannot delete current profile!</string> <!-- Add Profile --> <string name="add_profile_dialog_title">Create new profile</string> Loading src/com/android/settings/profiles/SetupActionsFragment.java +14 −0 Original line number Diff line number Diff line Loading @@ -404,6 +404,20 @@ public class SetupActionsFragment extends SettingsPreferenceFragment } private void requestRemoveProfileDialog() { Profile current = mProfileManager.getActiveProfile(); if (mProfile.getUuid().equals(current.getUuid())) { AlertDialog.Builder builder = new AlertDialog.Builder(getActivity()); builder.setMessage(getString(R.string.profile_remove_current_profile)); builder.setNegativeButton(R.string.cancel, new DialogInterface.OnClickListener() { @Override public void onClick(DialogInterface dialog, int which) { dialog.dismiss(); } }); builder.show(); return; } AlertDialog.Builder builder = new AlertDialog.Builder(getActivity()); builder.setMessage(getString(R.string.profile_remove_dialog_message, mProfile.getName())); builder.setPositiveButton(R.string.yes, new DialogInterface.OnClickListener() { Loading Loading
res/values/cm_strings.xml +1 −0 Original line number Diff line number Diff line Loading @@ -47,6 +47,7 @@ <string name="profile_remove_dialog_message">Remove profile %1$s?</string> <string name="profile_populate_profile_from_state">Configure profile using current device settings?</string> <string name="profile_menu_fill_from_state">Import current device settings</string> <string name="profile_remove_current_profile">Cannot delete current profile!</string> <!-- Add Profile --> <string name="add_profile_dialog_title">Create new profile</string> Loading
src/com/android/settings/profiles/SetupActionsFragment.java +14 −0 Original line number Diff line number Diff line Loading @@ -404,6 +404,20 @@ public class SetupActionsFragment extends SettingsPreferenceFragment } private void requestRemoveProfileDialog() { Profile current = mProfileManager.getActiveProfile(); if (mProfile.getUuid().equals(current.getUuid())) { AlertDialog.Builder builder = new AlertDialog.Builder(getActivity()); builder.setMessage(getString(R.string.profile_remove_current_profile)); builder.setNegativeButton(R.string.cancel, new DialogInterface.OnClickListener() { @Override public void onClick(DialogInterface dialog, int which) { dialog.dismiss(); } }); builder.show(); return; } AlertDialog.Builder builder = new AlertDialog.Builder(getActivity()); builder.setMessage(getString(R.string.profile_remove_dialog_message, mProfile.getName())); builder.setPositiveButton(R.string.yes, new DialogInterface.OnClickListener() { Loading