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 minSdkVersion 16
targetSdkVersion 29 targetSdkVersion 29
versionCode 57 versionCode 57
versionName "5.0-alpha3" versionName "5.0-alpha4"
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner" testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
vectorDrawables.useSupportLibrary = true vectorDrawables.useSupportLibrary = true
} }

View File

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

View File

@@ -238,10 +238,8 @@ class ReaderActivity : AppCompatActivity() {
timer.cancel() timer.cancel()
(reader_recyclerview?.adapter as? ReaderAdapter)?.timer?.cancel() (reader_recyclerview?.adapter as? ReaderAdapter)?.timer?.cancel()
if (!DownloadManager.getInstance(this).isDownloading(galleryID)) { if (!DownloadManager.getInstance(this).isDownloading(galleryID))
downloader?.cancel(galleryID) DownloadService.cancel(this, galleryID)
DownloadManager.getInstance(this).deleteDownloadFolder(galleryID)
}
if (downloader != null) if (downloader != null)
unbindService(conn) unbindService(conn)
@@ -296,6 +294,8 @@ class ReaderActivity : AppCompatActivity() {
.show() .show()
} }
histories.add(galleryID)
runOnUiThread { runOnUiThread {
reader_download_progressbar.max = reader_recyclerview.adapter?.itemCount ?: 0 reader_download_progressbar.max = reader_recyclerview.adapter?.itemCount ?: 0
reader_download_progressbar.progress = downloader.progress[galleryID]?.count { it.isInfinite() } ?: 0 reader_download_progressbar.progress = downloader.progress[galleryID]?.count { it.isInfinite() } ?: 0