Loading res/values/cm_arrays.xml +1 −1 Original line number Diff line number Diff line Loading @@ -42,7 +42,7 @@ <!-- Profile lock mode summaries. Do not translate. --> <string-array name="profile_lockmode_entries" translatable="false"> <item>@string/profile_action_none</item> <item>@string/profile_action_system</item> <item>@string/profile_lockmode_insecure_summary</item> <item>@string/profile_lockmode_disabled_summary</item> </string-array> Loading res/values/cm_strings.xml +1 −0 Original line number Diff line number Diff line Loading @@ -634,6 +634,7 @@ <string name="profile_menu_delete_title">Delete</string> <string name="profile_action_none">Leave unchanged</string> <string name="profile_action_system">System default</string> <string name="profile_action_disable">Turn off</string> <string name="profile_action_enable">Turn on</string> Loading src/com/android/settings/profiles/SetupActionsFragment.java +3 −2 Original line number Diff line number Diff line Loading @@ -22,6 +22,7 @@ import cyanogenmod.profiles.BrightnessSettings; import cyanogenmod.profiles.ConnectionSettings; import android.app.Dialog; import android.app.NotificationGroup; import cyanogenmod.profiles.LockSettings; import cyanogenmod.profiles.RingModeSettings; import cyanogenmod.profiles.StreamSettings; import android.app.admin.DevicePolicyManager; Loading Loading @@ -589,7 +590,7 @@ public class SetupActionsFragment extends SettingsPreferenceFragment int defaultIndex = 0; // no action for (int i = 0; i < LOCKMODE_MAPPING.length; i++) { if (LOCKMODE_MAPPING[i] == mProfile.getScreenLockMode()) { if (LOCKMODE_MAPPING[i] == mProfile.getScreenLockMode().getValue()) { defaultIndex = i; break; } Loading @@ -600,7 +601,7 @@ public class SetupActionsFragment extends SettingsPreferenceFragment new DialogInterface.OnClickListener() { @Override public void onClick(DialogInterface dialog, int item) { mProfile.setScreenLockMode(LOCKMODE_MAPPING[item]); mProfile.setScreenLockMode(new LockSettings(LOCKMODE_MAPPING[item])); updateProfile(); mAdapter.notifyDataSetChanged(); dialog.dismiss(); Loading src/com/android/settings/profiles/actions/item/LockModeItem.java +2 −2 Original line number Diff line number Diff line Loading @@ -62,9 +62,9 @@ public class LockModeItem implements Item { } public static int getSummaryString(Profile profile) { switch (profile.getScreenLockMode()) { switch (profile.getScreenLockMode().getValue()) { case Profile.LockMode.DEFAULT: return R.string.profile_action_none; //"leave unchanged" return R.string.profile_action_system; //"leave unchanged" case Profile.LockMode.DISABLE: return R.string.profile_lockmode_disabled_summary; case Profile.LockMode.INSECURE: Loading Loading
res/values/cm_arrays.xml +1 −1 Original line number Diff line number Diff line Loading @@ -42,7 +42,7 @@ <!-- Profile lock mode summaries. Do not translate. --> <string-array name="profile_lockmode_entries" translatable="false"> <item>@string/profile_action_none</item> <item>@string/profile_action_system</item> <item>@string/profile_lockmode_insecure_summary</item> <item>@string/profile_lockmode_disabled_summary</item> </string-array> Loading
res/values/cm_strings.xml +1 −0 Original line number Diff line number Diff line Loading @@ -634,6 +634,7 @@ <string name="profile_menu_delete_title">Delete</string> <string name="profile_action_none">Leave unchanged</string> <string name="profile_action_system">System default</string> <string name="profile_action_disable">Turn off</string> <string name="profile_action_enable">Turn on</string> Loading
src/com/android/settings/profiles/SetupActionsFragment.java +3 −2 Original line number Diff line number Diff line Loading @@ -22,6 +22,7 @@ import cyanogenmod.profiles.BrightnessSettings; import cyanogenmod.profiles.ConnectionSettings; import android.app.Dialog; import android.app.NotificationGroup; import cyanogenmod.profiles.LockSettings; import cyanogenmod.profiles.RingModeSettings; import cyanogenmod.profiles.StreamSettings; import android.app.admin.DevicePolicyManager; Loading Loading @@ -589,7 +590,7 @@ public class SetupActionsFragment extends SettingsPreferenceFragment int defaultIndex = 0; // no action for (int i = 0; i < LOCKMODE_MAPPING.length; i++) { if (LOCKMODE_MAPPING[i] == mProfile.getScreenLockMode()) { if (LOCKMODE_MAPPING[i] == mProfile.getScreenLockMode().getValue()) { defaultIndex = i; break; } Loading @@ -600,7 +601,7 @@ public class SetupActionsFragment extends SettingsPreferenceFragment new DialogInterface.OnClickListener() { @Override public void onClick(DialogInterface dialog, int item) { mProfile.setScreenLockMode(LOCKMODE_MAPPING[item]); mProfile.setScreenLockMode(new LockSettings(LOCKMODE_MAPPING[item])); updateProfile(); mAdapter.notifyDataSetChanged(); dialog.dismiss(); Loading
src/com/android/settings/profiles/actions/item/LockModeItem.java +2 −2 Original line number Diff line number Diff line Loading @@ -62,9 +62,9 @@ public class LockModeItem implements Item { } public static int getSummaryString(Profile profile) { switch (profile.getScreenLockMode()) { switch (profile.getScreenLockMode().getValue()) { case Profile.LockMode.DEFAULT: return R.string.profile_action_none; //"leave unchanged" return R.string.profile_action_system; //"leave unchanged" case Profile.LockMode.DISABLE: return R.string.profile_lockmode_disabled_summary; case Profile.LockMode.INSECURE: Loading