mirror of
https://github.com/SchildiChat/SchildiChat-android.git
synced 2025-02-09 08:38:43 +01:00
Small cleanup
This commit is contained in:
parent
399e95a247
commit
ddf6a69a69
@ -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()
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user