show popup dialog when backup has been started. fixes #4031

This commit is contained in:
Daniel Gultsch 2021-03-22 15:40:22 +01:00
parent 45c5f9aa90
commit 02b16063c6
2 changed files with 5 additions and 0 deletions

View file

@ -411,6 +411,10 @@ public class SettingsActivity extends XmppActivity implements
private void createBackup() { private void createBackup() {
ContextCompat.startForegroundService(this, new Intent(this, ExportBackupService.class)); ContextCompat.startForegroundService(this, new Intent(this, ExportBackupService.class));
final AlertDialog.Builder builder = new AlertDialog.Builder(this);
builder.setMessage(R.string.backup_started_message);
builder.setPositiveButton(R.string.ok, null);
builder.create().show();
} }
private void displayToast(final String msg) { private void displayToast(final String msg) {

View file

@ -959,4 +959,5 @@
<string name="unable_to_parse_invite">Unable to parse invite</string> <string name="unable_to_parse_invite">Unable to parse invite</string>
<string name="server_does_not_support_easy_onboarding_invites">Server does not support generating invites</string> <string name="server_does_not_support_easy_onboarding_invites">Server does not support generating invites</string>
<string name="no_active_accounts_support_this">No active accounts support this feature</string> <string name="no_active_accounts_support_this">No active accounts support this feature</string>
<string name="backup_started_message">The backup has been started. Youll get a notification once it has been completed.</string>
</resources> </resources>