Fix status reporting of failed system app restore

This commit is contained in:
Torsten Grote 2020-09-21 17:02:09 -03:00 committed by Chirayu Desai
parent d7ca8151fd
commit c5aca6dd51

View file

@ -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
}
}