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; } }