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 06c9642a22
commit 4b72cf87ec

View file

@ -137,7 +137,7 @@ internal class ApkRestore(
if (isOlder || !installedPackageInfo.isSystemApp()) throw NameNotFoundException() if (isOlder || !installedPackageInfo.isSystemApp()) throw NameNotFoundException()
} catch (e: NameNotFoundException) { } catch (e: NameNotFoundException) {
Log.w(TAG, "Not installing $packageName because older or not a system app here.") Log.w(TAG, "Not installing $packageName because older or not a system app here.")
fail(installResult, packageName) emit(fail(installResult, packageName))
return@flow return@flow
} }
} }