Skip to content

Commit

Permalink
Fix app crash during bulk download and update version to 2.1.8.
Browse files Browse the repository at this point in the history
  • Loading branch information
matsumo0922 committed Oct 13, 2024
1 parent e82d5fd commit 26fd71e
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 4 deletions.
7 changes: 7 additions & 0 deletions core/ui/src/commonMain/composeResources/files/versions.json
Original file line number Diff line number Diff line change
Expand Up @@ -173,5 +173,12 @@
"date": "2024/10/10",
"logJp": "・ダウンロード中のUIを改善\n・ダウンロードしたファイルの保存先を指定できるように変更\n・常にオリジナルサイズの画像をダウンロードできるオプションを用意\n・大きなファイルをダウンロードした際にアプリがクラッシュする問題を修正",
"logEn": "・Improved the UI during downloading\n・Changed so that you can specify the destination to save downloaded files\n・Option to always download images in their original size\n・Fixed issue where app would crash when downloading large files"
},
{
"versionName": "2.1.8",
"versionCode": 48,
"date": "2024/10/14",
"logJp": "・一括ダウンロード中にアプリがクラッシュする問題を修正",
"logEn": "・Fixed an issue where the app would crash during bulk download."
}
]
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,12 @@ class DownloadPostService : Service() {
if (isForeground) {
if (!this.isForeground) {
Napier.d { "DownloadPostService start" }
startForeground(notifyConfig.notifyId, createNotify(baseContext, title, message, subMessage, progress))

runCatching {
startForeground(notifyConfig.notifyId, createNotify(baseContext, title, message, subMessage, progress))
}.onFailure {
Napier.e(it) { "Failed to start foreground service. $title, $message" }
}
} else {
manager.notify(notifyConfig.notifyId, createNotify(baseContext, title, message, subMessage, progress))
}
Expand Down
6 changes: 3 additions & 3 deletions gradle/libs.versions.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[versions]
# Application
versionName = "2.1.7"
versionCode = "46"
versionName = "2.1.8"
versionCode = "47"

# SDK
minSdk = "26"
Expand Down Expand Up @@ -64,7 +64,7 @@ koin = "4.0.0"
preCompose = "1.7.0-alpha02"

# Others
ktor = "3.0.0-eap-1107"
ktor = "3.0.0"
coil3 = "3.0.0-alpha10"
ksoup = "0.1.2"
composeWebView = "1.9.40-alpha01"
Expand Down

0 comments on commit 26fd71e

Please sign in to comment.