From 4b72cf87ec00954aa38b3523dc33fdc2633de81a Mon Sep 17 00:00:00 2001 From: Torsten Grote Date: Mon, 21 Sep 2020 17:02:09 -0300 Subject: [PATCH] Fix status reporting of failed system app restore --- .../com/stevesoltys/seedvault/transport/restore/ApkRestore.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/com/stevesoltys/seedvault/transport/restore/ApkRestore.kt b/app/src/main/java/com/stevesoltys/seedvault/transport/restore/ApkRestore.kt index f4199797..fe7a6421 100644 --- a/app/src/main/java/com/stevesoltys/seedvault/transport/restore/ApkRestore.kt +++ b/app/src/main/java/com/stevesoltys/seedvault/transport/restore/ApkRestore.kt @@ -137,7 +137,7 @@ internal class ApkRestore( if (isOlder || !installedPackageInfo.isSystemApp()) throw NameNotFoundException() } catch (e: NameNotFoundException) { Log.w(TAG, "Not installing $packageName because older or not a system app here.") - fail(installResult, packageName) + emit(fail(installResult, packageName)) return@flow } }