discord-jadx/app/src/main/java/b/a/o/a.java

40 lines
1.5 KiB
Java
Raw Normal View History

2021-12-17 21:59:34 +00:00
package b.a.o;
2021-07-24 02:37:17 +00:00
2021-08-11 06:37:47 +00:00
import android.content.Context;
import android.content.res.Resources;
import androidx.core.os.ConfigurationCompat;
2021-11-02 06:38:17 +00:00
import d0.z.d.m;
import d0.z.d.o;
2021-08-11 06:37:47 +00:00
import java.util.Locale;
import kotlin.jvm.functions.Function1;
/* compiled from: LocaleProvider.kt */
public final class a {
2022-02-01 08:01:17 +00:00
public static Function1<? super Context, Locale> a = C0031a.j;
2021-12-17 21:59:34 +00:00
/* renamed from: b reason: collision with root package name */
2022-01-27 07:52:47 +00:00
public static final a f248b = null;
2021-07-24 02:37:17 +00:00
2021-08-11 06:37:47 +00:00
/* compiled from: LocaleProvider.kt */
2021-12-17 21:59:34 +00:00
/* renamed from: b.a.o.a$a reason: collision with other inner class name */
2022-02-01 08:01:17 +00:00
public static final class C0031a extends o implements Function1<Context, Locale> {
public static final C0031a j = new C0031a();
2021-08-11 06:37:47 +00:00
2022-02-01 08:01:17 +00:00
public C0031a() {
2021-08-11 06:37:47 +00:00
super(1);
}
2021-07-24 02:37:17 +00:00
2021-08-11 06:37:47 +00:00
/* Return type fixed from 'java.lang.Object' to match base method */
/* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object] */
@Override // kotlin.jvm.functions.Function1
public Locale invoke(Context context) {
Context context2 = context;
m.checkParameterIsNotNull(context2, "context");
Resources resources = context2.getResources();
m.checkExpressionValueIsNotNull(resources, "context.resources");
Locale locale = ConfigurationCompat.getLocales(resources.getConfiguration()).get(0);
m.checkExpressionValueIsNotNull(locale, "ConfigurationCompat.getL…sources.configuration)[0]");
return locale;
2021-07-24 02:37:17 +00:00
}
}
}