Forgot 1 string

This commit is contained in:
PabloG02 2023-01-26 14:47:26 +01:00
parent d442be37b6
commit ad5222eed3
2 changed files with 2 additions and 1 deletions

View File

@ -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)

View File

@ -16,6 +16,7 @@
<string name="new_version">New version</string>
<string name="changelog">Changelog</string>
<string name="update">Update</string>
<string name="download_completed">Download completed</string>
<string name="no_updates_available">No updates available</string>
<string name="close">Close</string>
<!-- Main -->