mirror of
https://github.com/VibedByKaKi/alexandroid.git
synced 2026-11-17 03:17:17 +01:00
26 lines
1.3 KiB
Java
26 lines
1.3 KiB
Java
package androidx.compose.ui.platform;
|
|
|
|
import android.content.Context;
|
|
import android.graphics.Typeface;
|
|
import androidx.annotation.RequiresApi;
|
|
import kotlin.Metadata;
|
|
import org.jetbrains.annotations.NotNull;
|
|
|
|
/* compiled from: r8-map-id-b9432e0f623b4a4bff4ba50a8a24c4aafad2c1e11092747b9fb5e6a22af5a940 */
|
|
@RequiresApi(26)
|
|
@Metadata(d1 = {"\u0000\u001e\n\u0002\u0018\u0002\n\u0002\u0010\u0000\n\u0002\b\u0003\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\b\n\u0000\bÃ\u0002\u0018\u00002\u00020\u0001B\t\b\u0002¢\u0006\u0004\b\u0002\u0010\u0003J\u0018\u0010\u0004\u001a\u00020\u00052\u0006\u0010\u0006\u001a\u00020\u00072\u0006\u0010\b\u001a\u00020\tH\u0007¨\u0006\n"}, d2 = {"Landroidx/compose/ui/platform/AndroidFontResourceLoaderHelper;", "", "<init>", "()V", "create", "Landroid/graphics/Typeface;", "context", "Landroid/content/Context;", "resourceId", "", "ui_release"}, k = 1, mv = {2, 0, 0}, xi = 48)
|
|
/* loaded from: classes13.dex */
|
|
final class AndroidFontResourceLoaderHelper {
|
|
|
|
@NotNull
|
|
public static final AndroidFontResourceLoaderHelper INSTANCE = new AndroidFontResourceLoaderHelper();
|
|
|
|
private AndroidFontResourceLoaderHelper() {
|
|
}
|
|
|
|
@RequiresApi(26)
|
|
@NotNull
|
|
public final Typeface create(@NotNull Context context, int resourceId) {
|
|
return context.getResources().getFont(resourceId);
|
|
}
|
|
}
|