From 46c6a0770c260ed125c86940ca2e8f1b63b1b368 Mon Sep 17 00:00:00 2001 From: davinci9196 Date: Tue, 15 Oct 2024 10:55:05 +0800 Subject: [PATCH] Fixed the issue where League of Legends Mobile pops up an error message --- .../android/finsky/assetmoduleservice/AssetModuleService.kt | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/vending-app/src/main/kotlin/com/google/android/finsky/assetmoduleservice/AssetModuleService.kt b/vending-app/src/main/kotlin/com/google/android/finsky/assetmoduleservice/AssetModuleService.kt index 39cd1245d..d6555609e 100644 --- a/vending-app/src/main/kotlin/com/google/android/finsky/assetmoduleservice/AssetModuleService.kt +++ b/vending-app/src/main/kotlin/com/google/android/finsky/assetmoduleservice/AssetModuleService.kt @@ -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()) } + 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()) }