Fixed crash where new application asks for root access

This commit is contained in:
Viktor De Pasquale
2019-05-13 15:56:27 +02:00
parent 337fda2023
commit 0850401dc4
2 changed files with 3 additions and 2 deletions
@@ -44,7 +44,7 @@ class PolicyDao(
condition {
equals("uid", uid)
}
}.map { it.first().toPolicy(context.packageManager) }
}.map { it.firstOrNull()?.toPolicy(context.packageManager) }
.doOnError {
if (it is PackageManager.NameNotFoundException) {
delete(uid).subscribe()