Small cleanup

This commit is contained in:
Benoit Marty 2022-06-01 16:14:36 +02:00 committed by Benoit Marty
parent 399e95a247
commit ddf6a69a69

View File

@ -144,8 +144,7 @@ class UnifiedPushHelper @Inject constructor(
} }
) )
if (distributors.size == 1 && if (distributors.size == 1 && !force) {
!force) {
up.saveDistributor(context, distributors.first()) up.saveDistributor(context, distributors.first())
up.registerApp(context) up.registerApp(context)
onDoneRunnable?.run() onDoneRunnable?.run()
@ -160,7 +159,7 @@ class UnifiedPushHelper @Inject constructor(
context.packageManager.getApplicationLabel(ai) context.packageManager.getApplicationLabel(ai)
} catch (e: PackageManager.NameNotFoundException) { } catch (e: PackageManager.NameNotFoundException) {
it it
} as String }
} }
}.toTypedArray() }.toTypedArray()