mirror of
https://github.com/SchildiChat/SchildiChat-android.git
synced 2025-03-24 23:09:02 +03:00
Small cleanup
This commit is contained in:
parent
399e95a247
commit
ddf6a69a69
1 changed files with 2 additions and 3 deletions
|
@ -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…
Add table
Reference in a new issue