mirror of
https://github.com/SchildiChat/SchildiChat-android.git
synced 2025-02-16 12:00:03 +03:00
Prefer using toString()
This commit is contained in:
parent
74de9c82c0
commit
12d969b2c0
1 changed files with 2 additions and 2 deletions
|
@ -263,10 +263,10 @@ class UnifiedPushHelper @Inject constructor(
|
|||
val distributor = up.getDistributor(context)
|
||||
return try {
|
||||
val ai = context.packageManager.getApplicationInfo(distributor, 0)
|
||||
context.packageManager.getApplicationLabel(ai)
|
||||
context.packageManager.getApplicationLabel(ai).toString()
|
||||
} catch (e: PackageManager.NameNotFoundException) {
|
||||
distributor
|
||||
} as String
|
||||
}
|
||||
}
|
||||
|
||||
fun isEmbeddedDistributor(): Boolean {
|
||||
|
|
Loading…
Add table
Reference in a new issue