package o;

import android.content.res.Configuration;
import android.os.LocaleList;

/* compiled from: r8-map-id-3b7cc9102578c509342fa2f0fabed2bfc72239cd258d579fc679bfcbc198b048 */
/* loaded from: classes.dex */
public abstract class L7 {
    public static void a(Configuration configuration, Configuration configuration2, Configuration configuration3) {
        LocaleList locales = configuration.getLocales();
        LocaleList locales2 = configuration2.getLocales();
        if (locales.equals(locales2)) {
            return;
        }
        configuration3.setLocales(locales2);
        configuration3.locale = configuration2.locale;
    }

    public static C2327rM b(Configuration configuration) {
        return C2327rM.a(configuration.getLocales().toLanguageTags());
    }

    public static void c(C2327rM c2327rM) {
        LocaleList.setDefault(LocaleList.forLanguageTags(c2327rM.a.a.toLanguageTags()));
    }

    public static void d(Configuration configuration, C2327rM c2327rM) {
        configuration.setLocales(LocaleList.forLanguageTags(c2327rM.a.a.toLanguageTags()));
    }
}
