TikTok.apk(点击下载) / C136595Yq.java


package X;

import android.app.Activity;
import android.net.Uri;
import android.text.TextUtils;
import com.bytedance.covode.number.Covode;
import com.ss.android.ugc.aweme.bullet.api.IBulletService;
import com.ss.android.ugc.aweme.bullet.impl.BulletService;
import com.zhiliaoapp.musically.R;
import kotlin.g.b.m;

/* renamed from: X.5Yq  reason: invalid class name and case insensitive filesystem */
public final class C136595Yq<TTaskResult, TContinuationResult> implements AnonymousClass0E6 {
    public final /* synthetic */ AnonymousClass5YS LIZ;

    static {
        Covode.recordClassIndex(101847);
    }

    public C136595Yq(AnonymousClass5YS r1) {
        this.LIZ = r1;
    }

    @Override // X.AnonymousClass0E6
    public final /* synthetic */ Object then(AnonymousClass0ED r8) {
        String str;
        String str2;
        C21090sc.LIZ(r8);
        if (r8.LIZJ() || r8.LIZIZ()) {
            new C20240rF(this.LIZ.LJIJJ()).LIZIZ(R.string.hc_).LIZIZ();
            this.LIZ.LJJIJIL();
        } else {
            this.LIZ.LJJIJIL();
            C136605Yr r0 = ((C136615Ys) r8.LIZLLL()).LIZ;
            if (r0 == null || r0.LIZ == null) {
                new C20240rF(this.LIZ.LJIJJ()).LIZIZ(R.string.hc_).LIZIZ();
            }
            C136605Yr r02 = ((C136615Ys) r8.LIZLLL()).LIZ;
            if (r02 == null) {
                m.LIZIZ();
            }
            Boolean bool = r02.LIZ;
            if (bool == null) {
                m.LIZIZ();
            }
            if (bool.booleanValue()) {
                StringBuilder sb = new StringBuilder();
                C19740qR LIZ2 = C19730qQ.LIZIZ.LIZ();
                if (!TextUtils.isEmpty(LIZ2.LIZJ)) {
                    str2 = LIZ2.LIZJ;
                    if (str2 == null) {
                        m.LIZIZ();
                    }
                } else {
                    str2 = "https://www.tiktok.com/web-inapp/income-wallet/tax-flow?business_type=shoutouts&__status_bar=true&hide_nav_bar=1&should_full_screen=1";
                }
                Uri build = Uri.parse("aweme://webview").buildUpon().appendQueryParameter("url", sb.append(str2).append("&reviewed=").append(String.valueOf(this.LIZ.LJJIJIIJI().getReviewed())).toString()).build();
                IBulletService LIZJ = BulletService.LIZJ();
                Activity LJIJJ = this.LIZ.LJIJJ();
                m.LIZIZ(LJIJJ, "");
                String uri = build.toString();
                m.LIZIZ(uri, "");
                LIZJ.LIZ(LJIJJ, uri);
                this.LIZ.LJJIIJ.push("setting_currency_page");
            } else {
                C19740qR LIZ3 = C19730qQ.LIZIZ.LIZ();
                if (!TextUtils.isEmpty(LIZ3.LIZIZ)) {
                    str = LIZ3.LIZIZ;
                    if (str == null) {
                        m.LIZIZ();
                    }
                } else {
                    str = "https://www.tiktok.com/web-inapp/shoutouts/creator/set-price?__status_bar=true&hide_nav_bar=1&should_full_screen=1";
                }
                if (this.LIZ.LJJIJIIJI().getPrice() != null) {
                    StringBuilder append = new StringBuilder().append(str).append("&coin=");
                    C19720qP price = this.LIZ.LJJIJIIJI().getPrice();
                    if (price == null) {
                        m.LIZIZ();
                    }
                    str = append.append(String.valueOf(price.getCoin())).append("&reviewed=").append(String.valueOf(this.LIZ.LJJIJIIJI().getReviewed())).toString();
                }
                Uri build2 = Uri.parse("aweme://webview").buildUpon().appendQueryParameter("url", str).build();
                IBulletService LIZJ2 = BulletService.LIZJ();
                Activity LJIJJ2 = this.LIZ.LJIJJ();
                m.LIZIZ(LJIJJ2, "");
                String uri2 = build2.toString();
                m.LIZIZ(uri2, "");
                LIZJ2.LIZ(LJIJJ2, uri2);
                this.LIZ.LJJIIJ.push("setting_price_page");
            }
            LPA.LIZ(this.LIZ, new RunnableC136455Yc(this), 100);
            this.LIZ.LJJIJIL();
        }
        return C23860x5.LIZ;
    }
}