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
|
||||
)
|
||||
val preferTopBrandingContent: TopBrandingContent? =
|
||||
if (preferUiBrandingComponentName == null) null
|
||||
if (!requestInfo.hasPermissionToOverrideDefault() ||
|
||||
preferUiBrandingComponentName == null) null
|
||||
else {
|
||||
val (displayName, icon) = getServiceLabelAndIcon(
|
||||
context.packageManager, preferUiBrandingComponentName.flattenToString())
|
||||
|
||||
Reference in New Issue
Block a user