- 28,932 files - Full Java source code - Smali files - Resources Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
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;
|
|
}
|
|
}
|