Ask for confirmation before installing updates

Since there's no quick and clean way to show a dialog from a
serivice, don't allow to install updates from the notification.
This commit is contained in:
Gabriele M
2017-07-16 22:49:17 +02:00
parent 12688ba761
commit c3515644b6
3 changed files with 39 additions and 12 deletions

View File

@@ -79,4 +79,8 @@
<string name="confirm_delete_dialog_title">Delete file</string>
<string name="confirm_delete_dialog_message">Delete the selected update file?</string>
<string name="apply_update_dialog_title">Apply update</string>
<string name="apply_update_dialog_message">You are about to upgrade to <xliff:g id="update_name">%1$s</xliff:g>.\n\nIf you press <xliff:g id="ok">%2$s</xliff:g>, the device will restart itself in recovery mode to install the update.\n\nNote: This feature requires a compatible Recovery or updates will need to be installed manually.</string>
<string name="apply_update_dialog_message_ab">You are about to upgrade to <xliff:g id="update_name">%1$s</xliff:g>.\n\nIf you press <xliff:g id="ok">%2$s</xliff:g>, the device will begin installing in the background.\n\nOnce completed, you will be prompted to reboot.</string>
</resources>