Skip to content

Commit

Permalink
Fixed the issue where League of Legends Mobile pops up an error message
Browse files Browse the repository at this point in the history
  • Loading branch information
DaVinci9196 committed Oct 15, 2024
1 parent 48a3eee commit 46c6a07
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,12 @@ class AssetModuleServiceImpl(
return
}
lifecycleScope.launchWhenStarted {
if (list.all { it.getString(KEY_MODULE_NAME) == null }) {
Log.d(TAG, "startDownload: module name is null")
val result = Bundle().apply { putStringArrayList(KEY_PACK_NAMES, arrayListOf<String>()) }
callback?.onStartDownload(-1, result)
return@launchWhenStarted
}
if (moduleErrorRequested.contains(packageName)) {
Log.d(TAG, "startDownload: moduleData request error")
val result = Bundle().apply { putStringArrayList(KEY_PACK_NAMES, arrayListOf<String>()) }
Expand Down

0 comments on commit 46c6a07

Please sign in to comment.