1
mirror of https://github.com/m2049r/xmrwallet synced 2024-11-24 14:37:14 +01:00

resurrect 'backup successful' message (#482)

This commit is contained in:
m2049r 2018-11-24 13:00:31 +01:00 committed by GitHub
parent f5ae0525e3
commit 7cd07d1988
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
20 changed files with 31 additions and 4 deletions

View File

@ -50,19 +50,19 @@ public class BaseActivity extends SecureActivity implements GenerateReviewFragme
@Override
public void showProgressDialog(int msgId) {
showProgressDialog(msgId, 0);
showProgressDialog(msgId, 250); // don't show dialog for fast operations
}
public void showProgressDialog(int msgId, long delay) {
public void showProgressDialog(int msgId, long delayMillis) {
dismissProgressDialog(); // just in case
progressDialog = new SimpleProgressDialog(BaseActivity.this, msgId);
if (delay > 0) {
if (delayMillis > 0) {
Handler handler = new Handler();
handler.postDelayed(new Runnable() {
public void run() {
if (progressDialog != null) progressDialog.show();
}
}, delay);
}, delayMillis);
} else {
progressDialog.show();
}

View File

@ -479,6 +479,8 @@ public class LoginActivity extends BaseActivity
dismissProgressDialog();
if (!result) {
Toast.makeText(LoginActivity.this, getString(R.string.backup_failed), Toast.LENGTH_LONG).show();
} else {
Toast.makeText(LoginActivity.this, getString(R.string.backup_success), Toast.LENGTH_SHORT).show();
}
}
}

View File

@ -96,6 +96,7 @@
<string name="service_progress">Fertigstellen &#8230;\nDies kann einen Moment dauern!</string>
<string name="backup_success">Backup erfolgreich</string>
<string name="backup_failed">Backup fehlgeschlagen!</string>
<string name="archive_failed">Archivierung fehlgeschlagen!</string>
<string name="rename_failed">Umbenennen fehlgeschlagen!</string>

View File

@ -93,6 +93,7 @@
<string name="service_progress">Μάζεμα των πραγμάτων &#8230;\nΑυτό μπορεί να διαρκέσει λίγο!</string>
<string name="backup_success">Η δημιουργία αντίγραφου ασφαλείας ήταν επιτυχής</string>
<string name="backup_failed">Η δημιουργία αντίγραφου ασφαλείας απέτυχε!</string>
<string name="archive_failed">Η αρχειοθέτηση απέτυχε!</string>
<string name="rename_failed">Η μετονομασία απέτυχε!</string>

View File

@ -47,6 +47,7 @@
<string name="service_progress">Guardando todo\n¡Puede llevar un tiempo!</string>
<string name="backup_success">Copia de seguridad satisfactoria</string>
<string name="backup_failed">¡Copia de seguridad fallida!</string>
<string name="archive_failed">¡Archivado fallido!</string>
<string name="rename_failed">¡Cambio de nombre fallido!</string>

View File

@ -362,4 +362,6 @@
<string name="node_scanning">Scanning network&#8230;</string>
<string name="node_nobookmark">Automatically bookmarked best %1$d nodes</string>
<string name="label_test">Test</string><!--note: as in "Test a network connection"-->
<string name="backup_success">Backup successful</string>
</resources>

View File

@ -96,6 +96,7 @@
<string name="service_progress">Remise en ordre &#8230;\nCela peut prendre un moment !</string>
<string name="backup_success">Sauvegarde réussie</string>
<string name="backup_failed">Sauvegarde Échouée !</string>
<string name="archive_failed">Archivage Échouée !</string>
<string name="rename_failed">Renommage Échoué !</string>

View File

@ -364,4 +364,6 @@
<string name="node_scanning">Scanning network&#8230;</string>
<string name="node_nobookmark">Automatically bookmarked best %1$d nodes</string>
<string name="label_test">Test</string><!--note: as in "Test a network connection"-->
<string name="backup_success">Backup successful</string>
</resources>

View File

@ -96,6 +96,7 @@
<string name="service_progress">Rimettendo le cose a posto &#8230;\nPuò richiedere del tempo!</string>
<string name="backup_success">Backup effettuato con successo</string>
<string name="backup_failed">Backup fallito!</string>
<string name="archive_failed">Archiviazione fallita!</string>
<string name="rename_failed">Rinomina fallita!</string>

View File

@ -94,6 +94,7 @@
<string name="service_progress">Gjør ting ferdig &#8230;\nDette kan ta si tid!</string>
<string name="backup_success">Backup suksessfull</string>
<string name="backup_failed">Backup feila!</string>
<string name="archive_failed">Arkivering feila!</string>
<string name="rename_failed">Kunne ikke gi nytt navn!</string>

View File

@ -361,4 +361,6 @@
<string name="node_scanning">Scanning network&#8230;</string>
<string name="node_nobookmark">Automatically bookmarked best %1$d nodes</string>
<string name="label_test">Test</string><!--note: as in "Test a network connection"-->
<string name="backup_success">Backup successful</string>
</resources>

View File

@ -354,4 +354,6 @@
<string name="node_scanning">Scanning network&#8230;</string>
<string name="node_nobookmark">Automatically bookmarked best %1$d nodes</string>
<string name="label_test">Test</string><!--note: as in "Test a network connection"-->
<string name="backup_success">Backup successful</string>
</resources>

View File

@ -366,4 +366,6 @@
<string name="node_scanning">Scanning network&#8230;</string>
<string name="node_nobookmark">Automatically bookmarked best %1$d nodes</string>
<string name="label_test">Test</string><!--note: as in "Test a network connection"-->
<string name="backup_success">Backup successful</string>
</resources>

View File

@ -93,6 +93,7 @@
<string name="service_progress">Impachetăm lucrurile &#8230;\nPoate dura un pic!</string>
<string name="backup_success">Copia de rezervă creată cu succes</string>
<string name="backup_failed">Copia de rezervă a eșuat!</string>
<string name="archive_failed">Arhivarea a eșuat!</string>
<string name="rename_failed">Redenumirea a eșuat!</string>

View File

@ -365,4 +365,6 @@
<string name="node_scanning">Scanning network&#8230;</string>
<string name="node_nobookmark">Automatically bookmarked best %1$d nodes</string>
<string name="label_test">Test</string><!--note: as in "Test a network connection"-->
<string name="backup_success">Backup successful</string>
</resources>

View File

@ -362,4 +362,6 @@
<string name="node_scanning">Skenivanie siete&#8230;</string>
<string name="node_nobookmark">Automaticky ukladám %1$d najlepších uzlov</string>
<string name="label_test">Test</string><!--note: as in "Test a network connection"-->
<string name="backup_success">Backup successful</string>
</resources>

View File

@ -88,6 +88,7 @@
<string name="service_progress">Gör klart några saker …\nDetta kan ta lite tid!</string>
<string name="backup_success">Säkerhetskopia sparad</string>
<string name="backup_failed">Det gick inte att säkerhetskopiera!</string>
<string name="archive_failed">Det gick inte att arkivera!</string>
<string name="rename_failed">Det gick inte att byta namn!</string>

View File

@ -95,6 +95,7 @@
<string name="service_progress">处理中 &#8230;\n可能会花费一点时间</string>
<string name="backup_success">备份成功</string>
<string name="backup_failed">备份失败!</string>
<string name="archive_failed">封存失败!</string>
<string name="rename_failed">重新命名失败!</string>

View File

@ -96,6 +96,7 @@
<string name="service_progress">處理中 &#8230;\n可能需要些許時間</string>
<string name="backup_success">備份成功</string>
<string name="backup_failed">備份失敗!</string>
<string name="archive_failed">封存失敗!</string>
<string name="rename_failed">重新命名失敗!</string>

View File

@ -96,6 +96,7 @@
<string name="service_progress">Wrapping things up &#8230;\nThis can take a while!</string>
<string name="backup_success">Backup successful</string>
<string name="backup_failed">Backup failed!</string>
<string name="archive_failed">Archive failed!</string>
<string name="rename_failed">Rename failed!</string>