This commit is contained in:
tom5079
2020-09-04 11:05:29 +09:00
parent 5ec67488eb
commit ffc7c2aa67
3 changed files with 6 additions and 6 deletions

View File

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

View File

@@ -12,7 +12,7 @@
"filters": [],
"properties": [],
"versionCode": 57,
"versionName": "5.0-alpha3",
"versionName": "5.0-alpha4",
"enabled": true,
"outputFile": "app-release.apk"
}

View File

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