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:
parent
f5ae0525e3
commit
7cd07d1988
@ -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();
|
||||
}
|
||||
|
@ -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();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -96,6 +96,7 @@
|
||||
|
||||
<string name="service_progress">Fertigstellen …\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>
|
||||
|
@ -93,6 +93,7 @@
|
||||
|
||||
<string name="service_progress">Μάζεμα των πραγμάτων …\nΑυτό μπορεί να διαρκέσει λίγο!</string>
|
||||
|
||||
<string name="backup_success">Η δημιουργία αντίγραφου ασφαλείας ήταν επιτυχής</string>
|
||||
<string name="backup_failed">Η δημιουργία αντίγραφου ασφαλείας απέτυχε!</string>
|
||||
<string name="archive_failed">Η αρχειοθέτηση απέτυχε!</string>
|
||||
<string name="rename_failed">Η μετονομασία απέτυχε!</string>
|
||||
|
@ -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>
|
||||
|
@ -362,4 +362,6 @@
|
||||
<string name="node_scanning">Scanning network…</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>
|
||||
|
@ -96,6 +96,7 @@
|
||||
|
||||
<string name="service_progress">Remise en ordre …\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>
|
||||
|
@ -364,4 +364,6 @@
|
||||
<string name="node_scanning">Scanning network…</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>
|
||||
|
@ -96,6 +96,7 @@
|
||||
|
||||
<string name="service_progress">Rimettendo le cose a posto …\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>
|
||||
|
@ -94,6 +94,7 @@
|
||||
|
||||
<string name="service_progress">Gjør ting ferdig …\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>
|
||||
|
@ -361,4 +361,6 @@
|
||||
<string name="node_scanning">Scanning network…</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>
|
||||
|
@ -354,4 +354,6 @@
|
||||
<string name="node_scanning">Scanning network…</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>
|
||||
|
@ -366,4 +366,6 @@
|
||||
<string name="node_scanning">Scanning network…</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>
|
||||
|
@ -93,6 +93,7 @@
|
||||
|
||||
<string name="service_progress">Impachetăm lucrurile …\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>
|
||||
|
@ -365,4 +365,6 @@
|
||||
<string name="node_scanning">Scanning network…</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>
|
||||
|
@ -362,4 +362,6 @@
|
||||
<string name="node_scanning">Skenivanie siete…</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>
|
||||
|
@ -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>
|
||||
|
@ -95,6 +95,7 @@
|
||||
|
||||
<string name="service_progress">处理中 …\n可能会花费一点时间!</string>
|
||||
|
||||
<string name="backup_success">备份成功</string>
|
||||
<string name="backup_failed">备份失败!</string>
|
||||
<string name="archive_failed">封存失败!</string>
|
||||
<string name="rename_failed">重新命名失败!</string>
|
||||
|
@ -96,6 +96,7 @@
|
||||
|
||||
<string name="service_progress">處理中 …\n可能需要些許時間!</string>
|
||||
|
||||
<string name="backup_success">備份成功</string>
|
||||
<string name="backup_failed">備份失敗!</string>
|
||||
<string name="archive_failed">封存失敗!</string>
|
||||
<string name="rename_failed">重新命名失敗!</string>
|
||||
|
@ -96,6 +96,7 @@
|
||||
|
||||
<string name="service_progress">Wrapping things up …\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>
|
||||
|
Loading…
Reference in New Issue
Block a user