Merge branch 'patch'

This commit is contained in:
arkon
2022-07-08 15:59:57 -04:00
7 changed files with 12 additions and 9 deletions

View File

@ -60,8 +60,8 @@ fun ChapterDownloadIndicator(
},
) {
val indicatorModifier = Modifier
.size(IndicatorSize)
.padding(IndicatorPadding)
.size(IndicatorSize)
.padding(IndicatorPadding)
if (isDownloaded) {
Icon(
imageVector = Icons.Default.CheckCircle,
@ -151,5 +151,6 @@ fun ChapterDownloadIndicator(
private val IndicatorSize = 26.dp
private val IndicatorPadding = 2.dp
// To match composable parameter name when used later
private val IndicatorStrokeWidth = IndicatorPadding

View File

@ -196,6 +196,8 @@ class LibraryUpdateService(
*/
override fun onDestroy() {
updateJob?.cancel()
// Despite what Android Studio
// states this can be null
ioScope?.cancel()
if (wakeLock.isHeld) {
wakeLock.release()