Merge "Only honor preferUiBrandingComponentName with permission" into udc-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
b6699962a2
@@ -201,7 +201,8 @@ class GetFlowUtils {
|
|||||||
ComponentName::class.java
|
ComponentName::class.java
|
||||||
)
|
)
|
||||||
val preferTopBrandingContent: TopBrandingContent? =
|
val preferTopBrandingContent: TopBrandingContent? =
|
||||||
if (preferUiBrandingComponentName == null) null
|
if (!requestInfo.hasPermissionToOverrideDefault() ||
|
||||||
|
preferUiBrandingComponentName == null) null
|
||||||
else {
|
else {
|
||||||
val (displayName, icon) = getServiceLabelAndIcon(
|
val (displayName, icon) = getServiceLabelAndIcon(
|
||||||
context.packageManager, preferUiBrandingComponentName.flattenToString())
|
context.packageManager, preferUiBrandingComponentName.flattenToString())
|
||||||
|
|||||||
Reference in New Issue
Block a user