Rabbit-R1/android (non root)/java/sources/androidx/compose/ui/platform/AndroidFontResourceLoaderHelper.java
2024-05-21 17:08:36 -04:00

23 lines
1.4 KiB
Java

package androidx.compose.ui.platform;
import android.content.Context;
import android.graphics.Typeface;
import kotlin.Metadata;
import kotlin.jvm.internal.Intrinsics;
/* compiled from: AndroidFontResourceLoader.android.kt */
@Metadata(d1 = {"\u0000\u001e\n\u0002\u0018\u0002\n\u0002\u0010\u0000\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\b\n\u0000\\u0002\u0018\u00002\u00020\u0001B\u0007\b\u0002¢\u0006\u0002\u0010\u0002J\u0018\u0010\u0003\u001a\u00020\u00042\u0006\u0010\u0005\u001a\u00020\u00062\u0006\u0010\u0007\u001a\u00020\bH\u0007¨\u0006\t"}, d2 = {"Landroidx/compose/ui/platform/AndroidFontResourceLoaderHelper;", "", "()V", "create", "Landroid/graphics/Typeface;", "context", "Landroid/content/Context;", "resourceId", "", "ui_release"}, k = 1, mv = {1, 8, 0}, xi = 48)
/* loaded from: classes.dex */
final class AndroidFontResourceLoaderHelper {
public static final AndroidFontResourceLoaderHelper INSTANCE = new AndroidFontResourceLoaderHelper();
private AndroidFontResourceLoaderHelper() {
}
public final Typeface create(Context context, int resourceId) {
Intrinsics.checkNotNullParameter(context, "context");
Typeface font = context.getResources().getFont(resourceId);
Intrinsics.checkNotNullExpressionValue(font, "context.resources.getFont(resourceId)");
return font;
}
}