Skip to content

Commit 5da888a

Browse files
committed
Remove rc from downloaded package name to avoid ambiguity
`rc` on the downloaded file name typically stands release candidate while the download service renames `rc` to indicate release code
1 parent 6acc7f7 commit 5da888a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

app/src/main/java/com/mxt/anitrend/service/DownloaderService.kt

+2-2
Original file line numberDiff line numberDiff line change
@@ -25,13 +25,13 @@ object DownloaderService {
2525
val downloadLink = String.format(RepositoryModel.DOWNLOAD_LINK, versionBase.version, versionSuffix)
2626
val downloadManager = context?.getSystemService(Context.DOWNLOAD_SERVICE) as DownloadManager?
2727
val request = DownloadManager.Request(Uri.parse(downloadLink))
28-
request.setTitle(String.format(Locale.getDefault(), "anitrend_v%s_rc_%d.apk", versionBase.version, versionBase.code))
28+
request.setTitle(String.format(Locale.getDefault(), "anitrend_v%s_%d.apk", versionBase.version, versionBase.code))
2929

3030
val ext = MimeTypeMap.getFileExtensionFromUrl(RepositoryModel.DOWNLOAD_LINK)
3131
request.setMimeType(MimeTypeMap.getSingleton().getMimeTypeFromExtension(ext))
3232
request.setDescription(context?.getString(R.string.text_downloading_update))
3333
request.setDestinationInExternalPublicDir(Environment.DIRECTORY_DOWNLOADS,
34-
String.format(Locale.getDefault(), "anitrend_v%s_rc_%d.apk", versionBase.version, versionBase.code))
34+
String.format(Locale.getDefault(), "anitrend_v%s_%d.apk", versionBase.version, versionBase.code))
3535
request.setNotificationVisibility(DownloadManager.Request.VISIBILITY_VISIBLE_NOTIFY_COMPLETED)
3636
downloadManager?.enqueue(request)
3737
}

0 commit comments

Comments
 (0)