Prefer using toString()
This commit is contained in:
parent
74de9c82c0
commit
12d969b2c0
@ -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 {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user