From ad5222eed3956f3909cac951a883063f7304b63d Mon Sep 17 00:00:00 2001 From: PabloG02 Date: Thu, 26 Jan 2023 14:47:26 +0100 Subject: [PATCH] Forgot 1 string --- app/src/main/java/emu/skyline/AppUpdater.kt | 2 +- app/src/main/res/values/strings.xml | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/app/src/main/java/emu/skyline/AppUpdater.kt b/app/src/main/java/emu/skyline/AppUpdater.kt index e9a97221..c82ceb8a 100644 --- a/app/src/main/java/emu/skyline/AppUpdater.kt +++ b/app/src/main/java/emu/skyline/AppUpdater.kt @@ -40,7 +40,7 @@ class AppUpdater : BroadcastReceiver() { val id = intent.getLongExtra(DownloadManager.EXTRA_DOWNLOAD_ID, -1) //Checking if the received broadcast is for our enqueued download by matching download id if (downloadID == id) { - Toast.makeText(context, "Download Completed", Toast.LENGTH_SHORT).show() + Toast.makeText(context, context.getString(R.string.download_completed), Toast.LENGTH_SHORT).show() val intentInstall = Intent(Intent.ACTION_INSTALL_PACKAGE) intentInstall.data = (context.getSystemService(AppCompatActivity.DOWNLOAD_SERVICE) as DownloadManager).getUriForDownloadedFile(downloadID) diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml index efc23d66..9657d8d7 100644 --- a/app/src/main/res/values/strings.xml +++ b/app/src/main/res/values/strings.xml @@ -16,6 +16,7 @@ New version Changelog Update + Download completed No updates available Close