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()); showNextFragment(new RemoteWipeSuccessFragment());
} else if (state.equals(RemoteWipeSetupState.FAILED)) { } else if (state.equals(RemoteWipeSetupState.FAILED)) {
Toast.makeText(this, Toast.makeText(this,
"Failed", R.string.remote_wipe_setup_failed,
Toast.LENGTH_SHORT).show(); Toast.LENGTH_LONG).show();
finish();
} else if (state.equals(RemoteWipeSetupState.FINISHED)) { } else if (state.equals(RemoteWipeSetupState.FINISHED)) {
finish(); finish();
} }

View File

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