granularity level: instruction

		.class public final Landroidx/core/telephony/mbms/MbmsHelper;
.super Ljava/lang/Object;
.source "MbmsHelper.java"




.method private constructor <init>()V
	.locals 0

	invoke-direct {p0}, Ljava/lang/Object;-><init>()V
	return-void
.end method

.method public static getBestNameForService(Landroid/content/Context;Landroid/telephony/mbms/ServiceInfo;)Ljava/lang/CharSequence;
	.locals 5

	sget v0, Landroid/os/Build$VERSION;->SDK_INT:I
	const/4 v1, 0x0
	const/16 v2, 0x1c
	if-ge v0, v2, :cond_0
	return-object v1
	:cond_0
	invoke-virtual {p0}, Landroid/content/Context;->getResources()Landroid/content/res/Resources;
	move-result-object p0
	invoke-virtual {p0}, Landroid/content/res/Resources;->getConfiguration()Landroid/content/res/Configuration;
	move-result-object p0
	invoke-virtual {p0}, Landroid/content/res/Configuration;->getLocales()Landroid/os/LocaleList;
	move-result-object p0
	invoke-virtual {p1}, Landroid/telephony/mbms/ServiceInfo;->getNamedContentLocales()Ljava/util/Set;
	move-result-object v0
	invoke-interface {v0}, Ljava/util/Set;->size()I
	move-result v0
	if-nez v0, :cond_1
	return-object v1
	:cond_1
	new-array v0, v0, [Ljava/lang/String;
	const/4 v2, 0x0
	invoke-virtual {p1}, Landroid/telephony/mbms/ServiceInfo;->getNamedContentLocales()Ljava/util/Set;
	move-result-object v3
	invoke-interface {v3}, Ljava/util/Set;->iterator()Ljava/util/Iterator;
	move-result-object v3
	:goto_0
	invoke-interface {v3}, Ljava/util/Iterator;->hasNext()Z
	move-result v4
	if-eqz v4, :cond_2
	invoke-interface {v3}, Ljava/util/Iterator;->next()Ljava/lang/Object;
	move-result-object v4
	check-cast v4, Ljava/util/Locale;
	invoke-virtual {v4}, Ljava/util/Locale;->toLanguageTag()Ljava/lang/String;
	move-result-object v4
	aput-object v4, v0, v2
	add-int/lit8 v2, v2, 0x1
	goto :goto_0
	:cond_2
	invoke-virtual {p0, v0}, Landroid/os/LocaleList;->getFirstMatch([Ljava/lang/String;)Ljava/util/Locale;
	move-result-object p0
	if-nez p0, :cond_3
	goto :goto_1
	:cond_3
	invoke-virtual {p1, p0}, Landroid/telephony/mbms/ServiceInfo;->getNameForLocale(Ljava/util/Locale;)Ljava/lang/CharSequence;
	move-result-object v1
	:goto_1
	return-object v1
.end method