package com.flurry.android;

import android.content.Context;
import android.content.Intent;

/* JADX INFO: Access modifiers changed from: package-private */
/* loaded from: /storage/emulated/0/Documents/jadec/sources/com.UBI.A90.WW/dex-files/0.dex */
public final class c implements Runnable {
    private /* synthetic */ String a;
    private /* synthetic */ Context b;
    private /* synthetic */ boolean c;
    private /* synthetic */ be d;

    /* JADX INFO: Access modifiers changed from: package-private */
    public c(be beVar, String str, Context context, boolean z) {
        this.d = beVar;
        this.a = str;
        this.b = context;
        this.c = z;
    }

    @Override // java.lang.Runnable
    public final void run() {
        if (this.a != null) {
            if (this.a.startsWith("market://")) {
                this.d.a(this.b, this.a);
                return;
            } else if (this.a.startsWith("http")) {
                Intent intent = new Intent(this.b, FlurryFullscreenTakeoverActivity.class);
                intent.putExtra("url", this.a);
                if (this.c && y.a(this.b, intent)) {
                    this.b.startActivity(intent);
                    return;
                }
                bc.b(be.a, "Unable to launch FlurryFullscreenTakeoverActivity, falling back to browser. Fix by declaring this Activity in your AndroidManifest.xml");
                y.a(this.b, this.a);
                return;
            } else if (!y.a(this.b, this.a)) {
                bc.d(be.a, "Failed to launch intent for:" + this.a);
                return;
            } else {
                return;
            }
        }
        bc.d(be.a, "Unable to launch intent for: " + this.a);
    }
}
