Don't log tryOrNull errors unnecessarily

This commit is contained in:
Moez Bhatti
2018-07-02 18:01:01 -04:00
parent 95b80ad408
commit 9cea675bd8
4 changed files with 10 additions and 7 deletions
@@ -72,10 +72,10 @@ class ExternalBlockingManagerImpl @Inject constructor(
// If either version of Should I Answer? is installed and SIA is enabled, build the
// intent to request a rating
if (prefs.sia.get()) {
intent = tryOrNull {
intent = tryOrNull(false) {
context.packageManager.getApplicationInfo("org.mistergroup.shouldianswerpersonal", 0).enabled
Intent("org.mistergroup.shouldianswerpersonal.PublicService").setPackage("org.mistergroup.shouldianswerpersonal")
} ?: tryOrNull {
} ?: tryOrNull(false) {
context.packageManager.getApplicationInfo("org.mistergroup.muzutozvednout", 0).enabled
Intent("org.mistergroup.muzutozvednout.PublicService").setPackage("org.mistergroup.muzutozvednout")
}