Do not reuse master_clear_gesture_* strings for credential installation confirmation

Bug: http://code.google.com/p/android/issues/detail?id=29367
Change-Id: I3b651bc84f22b48d651802115600ab4e256bb3a6
This commit is contained in:
Brian Carlstrom
2012-05-01 11:17:02 -07:00
parent b96b35a62b
commit 81d7a806a6
2 changed files with 8 additions and 3 deletions

View File

@@ -2036,7 +2036,7 @@
<string name="master_clear_final_button_text">Erase everything</string> <string name="master_clear_final_button_text">Erase everything</string>
<!-- Message to draw an unlock pattern before clearing the device --> <!-- Message to draw an unlock pattern before clearing the device -->
<string name="master_clear_gesture_prompt">Draw your unlock pattern</string> <string name="master_clear_gesture_prompt">Draw your unlock pattern</string>
<!-- Explanation of drawing unlockp attern to reset phone --> <!-- Explanation of drawing unlock pattern to reset phone -->
<string name="master_clear_gesture_explanation">You need to draw your unlock pattern to confirm a factory data reset.</string> <string name="master_clear_gesture_explanation">You need to draw your unlock pattern to confirm a factory data reset.</string>
<!-- Master clear failed message --> <!-- Master clear failed message -->
<string name="master_clear_failed">No reset was performed because the System Clear service isn\'t available.</string> <string name="master_clear_failed">No reset was performed because the System Clear service isn\'t available.</string>
@@ -3236,6 +3236,11 @@
<!-- Summary of preference to display trusted credentials (aka CA certificates) [CHAR LIMIT=NONE] --> <!-- Summary of preference to display trusted credentials (aka CA certificates) [CHAR LIMIT=NONE] -->
<string name="trusted_credentials_summary">Display trusted CA certificates</string> <string name="trusted_credentials_summary">Display trusted CA certificates</string>
<!-- Message to draw an unlock pattern when installing credentials -->
<string name="credentials_install_gesture_prompt">Draw your unlock pattern</string>
<!-- Explanation of drawing unlock pattern to install credentials -->
<string name="credentials_install_gesture_explanation">You need to draw your unlock pattern to confirm credential installation.</string>
<!-- Title of dialog to enable credential storage [CHAR LIMIT=30] --> <!-- Title of dialog to enable credential storage [CHAR LIMIT=30] -->
<string name="credentials_unlock"></string> <string name="credentials_unlock"></string>
<!-- Description of dialog to enable credential storage [CHAR LIMIT=NONE] --> <!-- Description of dialog to enable credential storage [CHAR LIMIT=NONE] -->

View File

@@ -338,8 +338,8 @@ public final class CredentialStorage extends Activity {
Resources res = getResources(); Resources res = getResources();
boolean launched = new ChooseLockSettingsHelper(this) boolean launched = new ChooseLockSettingsHelper(this)
.launchConfirmationActivity(CONFIRM_KEY_GUARD_REQUEST, .launchConfirmationActivity(CONFIRM_KEY_GUARD_REQUEST,
res.getText(R.string.master_clear_gesture_prompt), res.getText(R.string.credentials_install_gesture_prompt),
res.getText(R.string.master_clear_gesture_explanation)); res.getText(R.string.credentials_install_gesture_explanation));
return launched; return launched;
} }