package o; import android.content.Intent; import android.os.Bundle; import android.util.SparseArray; import com.huawei.hms.support.api.entity.common.CommonConstant; import java.util.ArrayList; import o.Zrh; /* loaded from: classes.dex */ public final class wpO { public final Bundle b; public final Intent e; wpO(Intent intent, Bundle bundle) { this.e = intent; this.b = bundle; } /* loaded from: classes.dex */ public static final class HBt { private Bundle a; private SparseArray d; private ArrayList e; private ArrayList g; private Bundle j; private final Intent f = new Intent(CommonConstant.ACTION.HWID_SCHEME_URL); private final Zrh.HBt b = new Zrh.HBt(); private int h = 0; private boolean c = true; public final wpO c() { if (!this.f.hasExtra("android.support.customtabs.extra.SESSION")) { Bundle bundle = new Bundle(); tQt.ml_(bundle, "android.support.customtabs.extra.SESSION", null); this.f.putExtras(bundle); } this.f.putExtra("android.support.customtabs.extra.EXTRA_ENABLE_INSTANT_APPS", this.c); Intent intent = this.f; Zrh.HBt hBt = this.b; Zrh zrh = new Zrh(hBt.e, hBt.a, hBt.b, hBt.c); Bundle bundle2 = new Bundle(); Integer num = zrh.e; if (num != null) { bundle2.putInt("android.support.customtabs.extra.TOOLBAR_COLOR", num.intValue()); } Integer num2 = zrh.d; if (num2 != null) { bundle2.putInt("android.support.customtabs.extra.SECONDARY_TOOLBAR_COLOR", num2.intValue()); } Integer num3 = zrh.b; if (num3 != null) { bundle2.putInt("androidx.browser.customtabs.extra.NAVIGATION_BAR_COLOR", num3.intValue()); } Integer num4 = zrh.c; if (num4 != null) { bundle2.putInt("androidx.browser.customtabs.extra.NAVIGATION_BAR_DIVIDER_COLOR", num4.intValue()); } intent.putExtras(bundle2); this.f.putExtra("androidx.browser.customtabs.extra.SHARE_STATE", 0); return new wpO(this.f, this.j); } } }