mirror of
https://github.com/VibedByKaKi/alexandroid.git
synced 2026-11-14 09:57:16 +01:00
38 lines
1.6 KiB
Java
38 lines
1.6 KiB
Java
package com.mapbox.common;
|
|
|
|
import android.content.Context;
|
|
import kotlin.Metadata;
|
|
import kotlin.jvm.internal.Intrinsics;
|
|
import org.jetbrains.annotations.NotNull;
|
|
|
|
/* compiled from: r8-map-id-b9432e0f623b4a4bff4ba50a8a24c4aafad2c1e11092747b9fb5e6a22af5a940 */
|
|
@Metadata(d1 = {"\u0000\u0014\n\u0002\u0018\u0002\n\u0002\u0010\u0000\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0002\b\u0004\bÆ\u0002\u0018\u00002\u00020\u0001B\u0007\b\u0002¢\u0006\u0002\u0010\u0002J\u0006\u0010\u0005\u001a\u00020\u0004J\u0011\u0010\u0006\u001a\u00020\u00002\u0006\u0010\u0007\u001a\u00020\u0004H\u0086\u0002R\u000e\u0010\u0003\u001a\u00020\u0004X\u0082.¢\u0006\u0002\n\u0000¨\u0006\b"}, d2 = {"Lcom/mapbox/common/MapboxSDKCommon;", "", "()V", "appContext", "Landroid/content/Context;", "getContext", "invoke", "context", "common_release"}, k = 1, mv = {1, 7, 1}, xi = 48)
|
|
/* loaded from: classes8.dex */
|
|
public final class MapboxSDKCommon {
|
|
|
|
@NotNull
|
|
public static final MapboxSDKCommon INSTANCE = new MapboxSDKCommon();
|
|
private static Context appContext;
|
|
|
|
private MapboxSDKCommon() {
|
|
}
|
|
|
|
@NotNull
|
|
public final Context getContext() {
|
|
Context context = appContext;
|
|
if (context != null) {
|
|
return context;
|
|
}
|
|
Intrinsics.throwUninitializedPropertyAccessException("appContext");
|
|
return null;
|
|
}
|
|
|
|
@NotNull
|
|
public final MapboxSDKCommon invoke(@NotNull Context context) {
|
|
context.getClass();
|
|
Context applicationContext = context.getApplicationContext();
|
|
applicationContext.getClass();
|
|
appContext = applicationContext;
|
|
return this;
|
|
}
|
|
}
|