android: Restore database from a backup when encryption fails for some reason (#1058)

* Restore database from a backup when encryption fails for some reason

* Removed unused code

* Safer way of doing some things

* Ordering

* Increased possible diff in time to 10 seconds

* update strings

* Alert confirmation

* update strings

Co-authored-by: Evgeny Poberezkin <2769109+epoberezkin@users.noreply.github.com>
This commit is contained in:
Stanislav Dmitrenko
2022-09-15 22:59:54 +03:00
committed by GitHub
parent 98ccab394a
commit 568c9201d6
7 changed files with 88 additions and 7 deletions
@@ -604,6 +604,12 @@
<string name="enter_passphrase">Enter passphrase…</string>
<string name="save_passphrase_and_open_chat">Save passphrase and open chat</string>
<string name="open_chat">Open chat</string>
<string name="database_backup_can_be_restored">The attempt to change database passphrase was not completed.</string>
<string name="restore_database">Restore database backup</string>
<string name="restore_database_alert_title">Restore database backup?</string>
<string name="restore_database_alert_desc">Please enter the previous password after restoring database backup. This action can not be undone.</string>
<string name="restore_database_alert_confirm">Restore</string>
<string name="database_restore_error">Restore database error</string>
<!-- ChatModel.chatRunning interactions -->
<string name="chat_is_stopped_indication">Chat is stopped</string>