* commit '865ca2a2efb4ebec3b6ddc89401f8544515cd43a': Final cleanup of "password required" dialog
This commit is contained in:
@@ -630,6 +630,12 @@
|
|||||||
<!-- Warning string that will be displayed when encryption cannot be started -->
|
<!-- Warning string that will be displayed when encryption cannot be started -->
|
||||||
<string name="crypt_keeper_unplugged_text">Please plug in your charger and try again.</string>
|
<string name="crypt_keeper_unplugged_text">Please plug in your charger and try again.</string>
|
||||||
|
|
||||||
|
<!-- Dialog title, shown when encryption cannot proceed because a PIN/Password is needed -->
|
||||||
|
<string name="crypt_keeper_dialog_need_password_title">No lock screen PIN or password</string>
|
||||||
|
<!-- Dialog message, shown when encryption cannot proceed because a PIN/Password is needed -->
|
||||||
|
<string name="crypt_keeper_dialog_need_password_message">You must set a lock screen PIN or
|
||||||
|
password before you can start encryption.</string>
|
||||||
|
|
||||||
<!-- Title of the final confirmation screen before starting device encryption -->
|
<!-- Title of the final confirmation screen before starting device encryption -->
|
||||||
<string name="crypt_keeper_confirm_title">Confirm encryption</string>
|
<string name="crypt_keeper_confirm_title">Confirm encryption</string>
|
||||||
<!-- Warning text in the final confirmation screen before starting device encryption -->
|
<!-- Warning text in the final confirmation screen before starting device encryption -->
|
||||||
|
@@ -91,11 +91,11 @@ public class CryptKeeperSettings extends Fragment {
|
|||||||
|
|
||||||
public void onClick(View v) {
|
public void onClick(View v) {
|
||||||
if (!runKeyguardConfirmation(KEYGUARD_REQUEST)) {
|
if (!runKeyguardConfirmation(KEYGUARD_REQUEST)) {
|
||||||
// TODO remove with proper flow
|
// TODO replace (or follow) this dialog with an explicit launch into password UI
|
||||||
new AlertDialog.Builder(getActivity())
|
new AlertDialog.Builder(getActivity())
|
||||||
.setTitle("No password set")
|
.setTitle(R.string.crypt_keeper_dialog_need_password_title)
|
||||||
.setIcon(android.R.drawable.ic_dialog_alert)
|
.setIcon(android.R.drawable.ic_dialog_alert)
|
||||||
.setMessage("Before you enable encryption you must set a device password.")
|
.setMessage(R.string.crypt_keeper_dialog_need_password_message)
|
||||||
.setPositiveButton(android.R.string.ok, null)
|
.setPositiveButton(android.R.string.ok, null)
|
||||||
.create()
|
.create()
|
||||||
.show();
|
.show();
|
||||||
|
Reference in New Issue
Block a user