diff --git a/app/src/main/java/foundation/e/apps/install/splitinstall/SplitInstallBinder.kt b/app/src/main/java/foundation/e/apps/install/splitinstall/SplitInstallBinder.kt index b4574c6538317bc2db20de1599487ba95fe41042..d243155732e8d28e518b0971515da9c51a7fda27 100644 --- a/app/src/main/java/foundation/e/apps/install/splitinstall/SplitInstallBinder.kt +++ b/app/src/main/java/foundation/e/apps/install/splitinstall/SplitInstallBinder.kt @@ -68,8 +68,8 @@ class SplitInstallBinder( } override fun installSplitModule(packageName: String, moduleName: String) { - try { - coroutineScope.launch { + coroutineScope.launch { + try { authenticatorRepository.getValidatedAuthData() if (authenticatorRepository.gplayAuth == null) { Timber.w(AUTH_DATA_ERROR_MESSAGE) @@ -77,10 +77,10 @@ class SplitInstallBinder( return@launch } downloadModule(packageName, moduleName) + } catch (exception: GPlayLoginException) { + Timber.w("$AUTH_DATA_ERROR_MESSAGE $exception") + handleError(packageName) } - } catch (exception: GPlayLoginException) { - Timber.w("$AUTH_DATA_ERROR_MESSAGE $exception") - handleError(packageName) } }