- Added realracing3-community.apk (71.57 MB) - Removed 32-bit support (armeabi-v7a) - Only includes arm64-v8a libraries - Decompiled source code included - Added README-community.md with analysis
47 lines
1.2 KiB
Java
47 lines
1.2 KiB
Java
package com.tapjoy;
|
|
|
|
import android.content.Context;
|
|
import android.content.Intent;
|
|
import android.net.Uri;
|
|
|
|
/* loaded from: classes4.dex */
|
|
public final class TJStore {
|
|
public static final TJStore INSTANCE = new TJStore();
|
|
public static String a;
|
|
public static boolean b;
|
|
|
|
public static void a(Context context) {
|
|
try {
|
|
Intent intent = new Intent("android.intent.action.VIEW");
|
|
intent.setData(Uri.parse("market://details"));
|
|
Intent.createChooser(intent, "Google Play store in US");
|
|
b = intent.resolveActivity(context.getPackageManager()) != null;
|
|
} catch (Exception e) {
|
|
TapjoyLog.e("TJStore", "Error trying to detect store intent on device: " + e);
|
|
}
|
|
}
|
|
|
|
public final String getStore() {
|
|
return a;
|
|
}
|
|
|
|
public final boolean getStoreView() {
|
|
return b;
|
|
}
|
|
|
|
public final void setContext(Context context) {
|
|
if (context != null) {
|
|
INSTANCE.getClass();
|
|
a(context);
|
|
}
|
|
}
|
|
|
|
public final void setStore(String str) {
|
|
a = str;
|
|
}
|
|
|
|
public final void setStoreView(boolean z) {
|
|
b = z;
|
|
}
|
|
}
|