mirror of
https://github.com/skyline-emu/skyline.git
synced 2024-12-23 07:31:50 +01:00
Forgot 1 string
This commit is contained in:
parent
d442be37b6
commit
ad5222eed3
@ -40,7 +40,7 @@ class AppUpdater : BroadcastReceiver() {
|
|||||||
val id = intent.getLongExtra(DownloadManager.EXTRA_DOWNLOAD_ID, -1)
|
val id = intent.getLongExtra(DownloadManager.EXTRA_DOWNLOAD_ID, -1)
|
||||||
//Checking if the received broadcast is for our enqueued download by matching download id
|
//Checking if the received broadcast is for our enqueued download by matching download id
|
||||||
if (downloadID == 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)
|
val intentInstall = Intent(Intent.ACTION_INSTALL_PACKAGE)
|
||||||
intentInstall.data = (context.getSystemService(AppCompatActivity.DOWNLOAD_SERVICE) as DownloadManager).getUriForDownloadedFile(downloadID)
|
intentInstall.data = (context.getSystemService(AppCompatActivity.DOWNLOAD_SERVICE) as DownloadManager).getUriForDownloadedFile(downloadID)
|
||||||
|
@ -16,6 +16,7 @@
|
|||||||
<string name="new_version">New version</string>
|
<string name="new_version">New version</string>
|
||||||
<string name="changelog">Changelog</string>
|
<string name="changelog">Changelog</string>
|
||||||
<string name="update">Update</string>
|
<string name="update">Update</string>
|
||||||
|
<string name="download_completed">Download completed</string>
|
||||||
<string name="no_updates_available">No updates available</string>
|
<string name="no_updates_available">No updates available</string>
|
||||||
<string name="close">Close</string>
|
<string name="close">Close</string>
|
||||||
<!-- Main -->
|
<!-- Main -->
|
||||||
|
Loading…
Reference in New Issue
Block a user