From d54176ccf7a21676a4de7096e2864a66760f7f39 Mon Sep 17 00:00:00 2001 From: Michael W Date: Mon, 7 Feb 2022 16:22:08 +0100 Subject: [PATCH] Updater: Show toast when starting export * It's not immediately clear that an export is started since the notification isn't intrusive * Show a toast - that will be clear enough Change-Id: I78d78b23884df3ddb37bc486c1d6012f899c888d --- res/values/strings.xml | 1 + src/org/lineageos/updater/ExportUpdateService.java | 1 + 2 files changed, 2 insertions(+) diff --git a/res/values/strings.xml b/res/values/strings.xml index d1fb3174..a1d2b8e1 100644 --- a/res/values/strings.xml +++ b/res/values/strings.xml @@ -125,6 +125,7 @@ Update exported Export error Already exporting an update + Export started 1 second left diff --git a/src/org/lineageos/updater/ExportUpdateService.java b/src/org/lineageos/updater/ExportUpdateService.java index 09befcc7..1c72ad20 100644 --- a/src/org/lineageos/updater/ExportUpdateService.java +++ b/src/org/lineageos/updater/ExportUpdateService.java @@ -69,6 +69,7 @@ public class ExportUpdateService extends Service { File source = (File) intent.getSerializableExtra(EXTRA_SOURCE_FILE); Uri destination = intent.getParcelableExtra(EXTRA_DEST_URI); startExporting(source, destination); + Toast.makeText(this, R.string.toast_export_started, Toast.LENGTH_SHORT).show(); } else { Log.e(TAG, "No action specified"); }