Error message on failure to set up remote wipe

This commit is contained in:
ameba23
2021-05-21 11:34:54 +02:00
parent 0fe699c9b5
commit ef7d182a74
2 changed files with 4 additions and 2 deletions

View File

@@ -63,8 +63,9 @@ public class RemoteWipeSetupActivity extends BriarActivity implements
showNextFragment(new RemoteWipeSuccessFragment());
} else if (state.equals(RemoteWipeSetupState.FAILED)) {
Toast.makeText(this,
"Failed",
Toast.LENGTH_SHORT).show();
R.string.remote_wipe_setup_failed,
Toast.LENGTH_LONG).show();
finish();
} else if (state.equals(RemoteWipeSetupState.FINISHED)) {
finish();
}

View File

@@ -734,6 +734,7 @@
<!-- setup -->
<string name="remote_wipe_setup_success">Remote wipe is set up</string>
<string name="remote_wipe_setup_failed">Failed to set up remote wipe</string>
<!-- settings menu -->
<string name="pref_remote_wipe_summary">Allow trusted contacts to activate an account wipe remotely</string>