package androidx.browser.customtabs;

import android.content.Intent;
import androidx.annotation.DoNotInline;
import androidx.annotation.Nullable;
import java.util.Locale;

/* JADX INFO: loaded from: classes.dex */
public abstract class m {
    @DoNotInline
    public static void a(Intent intent, Locale locale) {
        intent.putExtra("androidx.browser.customtabs.extra.TRANSLATE_LANGUAGE_TAG", locale.toLanguageTag());
    }

    @Nullable
    @DoNotInline
    public static Locale getLocaleForLanguageTag(Intent intent) {
        String stringExtra = intent.getStringExtra("androidx.browser.customtabs.extra.TRANSLATE_LANGUAGE_TAG");
        if (stringExtra != null) {
            return Locale.forLanguageTag(stringExtra);
        }
        return null;
    }
}
