fix
This commit is contained in:
parent
c982811748
commit
34ff91ccea
1 changed files with 1 additions and 1 deletions
|
@ -75,7 +75,7 @@ class AppProfileHandler(private val activity: Activity) : MethodCallHandler {
|
||||||
|
|
||||||
val crossProfileApps = activity.getSystemService(Context.CROSS_PROFILE_APPS_SERVICE) as CrossProfileApps
|
val crossProfileApps = activity.getSystemService(Context.CROSS_PROFILE_APPS_SERVICE) as CrossProfileApps
|
||||||
val userHandles = crossProfileApps.targetUserProfiles
|
val userHandles = crossProfileApps.targetUserProfiles
|
||||||
val label = crossProfileApps.getProfileSwitchingLabel(userHandles.first())
|
val label = if (userHandles.isEmpty()) "" else crossProfileApps.getProfileSwitchingLabel(userHandles.first())
|
||||||
|
|
||||||
result.success(label)
|
result.success(label)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue