Prefer using toString()

This commit is contained in:
Benoit Marty 2022-06-01 16:07:52 +02:00 committed by Benoit Marty
parent 74de9c82c0
commit 12d969b2c0

View File

@ -263,10 +263,10 @@ class UnifiedPushHelper @Inject constructor(
val distributor = up.getDistributor(context) val distributor = up.getDistributor(context)
return try { return try {
val ai = context.packageManager.getApplicationInfo(distributor, 0) val ai = context.packageManager.getApplicationInfo(distributor, 0)
context.packageManager.getApplicationLabel(ai) context.packageManager.getApplicationLabel(ai).toString()
} catch (e: PackageManager.NameNotFoundException) { } catch (e: PackageManager.NameNotFoundException) {
distributor distributor
} as String }
} }
fun isEmbeddedDistributor(): Boolean { fun isEmbeddedDistributor(): Boolean {