Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 2de84544 authored by Jonathan Klee's avatar Jonathan Klee
Browse files

Merge branch '0000-t-exception-propagation-fix' into 'main'

Catch the exception inside the coroutine scope

See merge request !442
parents 0e636152 ee69e4bf
Loading
Loading
Loading
Loading
Loading
+5 −5
Original line number Diff line number Diff line
@@ -68,8 +68,8 @@ class SplitInstallBinder(
    }

    override fun installSplitModule(packageName: String, moduleName: String) {
        try {
        coroutineScope.launch {
            try {
                authenticatorRepository.getValidatedAuthData()
                if (authenticatorRepository.gplayAuth == null) {
                    Timber.w(AUTH_DATA_ERROR_MESSAGE)
@@ -77,12 +77,12 @@ class SplitInstallBinder(
                    return@launch
                }
                downloadModule(packageName, moduleName)
            }
            } catch (exception: GPlayLoginException) {
                Timber.w("$AUTH_DATA_ERROR_MESSAGE $exception")
                handleError(packageName)
            }
        }
    }

    private fun handleError(packageName: String) {
        if (Build.VERSION.SDK_INT < Build.VERSION_CODES.O) {