Bug fix
This commit is contained in:
@@ -20,7 +20,7 @@ android {
|
||||
minSdkVersion 16
|
||||
targetSdkVersion 29
|
||||
versionCode 57
|
||||
versionName "5.0-alpha3"
|
||||
versionName "5.0-alpha4"
|
||||
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
|
||||
vectorDrawables.useSupportLibrary = true
|
||||
}
|
||||
|
||||
@@ -12,7 +12,7 @@
|
||||
"filters": [],
|
||||
"properties": [],
|
||||
"versionCode": 57,
|
||||
"versionName": "5.0-alpha3",
|
||||
"versionName": "5.0-alpha4",
|
||||
"enabled": true,
|
||||
"outputFile": "app-release.apk"
|
||||
}
|
||||
|
||||
@@ -238,10 +238,8 @@ class ReaderActivity : AppCompatActivity() {
|
||||
timer.cancel()
|
||||
(reader_recyclerview?.adapter as? ReaderAdapter)?.timer?.cancel()
|
||||
|
||||
if (!DownloadManager.getInstance(this).isDownloading(galleryID)) {
|
||||
downloader?.cancel(galleryID)
|
||||
DownloadManager.getInstance(this).deleteDownloadFolder(galleryID)
|
||||
}
|
||||
if (!DownloadManager.getInstance(this).isDownloading(galleryID))
|
||||
DownloadService.cancel(this, galleryID)
|
||||
|
||||
if (downloader != null)
|
||||
unbindService(conn)
|
||||
@@ -296,6 +294,8 @@ class ReaderActivity : AppCompatActivity() {
|
||||
.show()
|
||||
}
|
||||
|
||||
histories.add(galleryID)
|
||||
|
||||
runOnUiThread {
|
||||
reader_download_progressbar.max = reader_recyclerview.adapter?.itemCount ?: 0
|
||||
reader_download_progressbar.progress = downloader.progress[galleryID]?.count { it.isInfinite() } ?: 0
|
||||
|
||||
Reference in New Issue
Block a user