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


package X;

import android.content.Context;
import android.os.Build;
import android.os.Bundle;
import android.view.View;
import android.view.ViewGroup;
import android.view.Window;
import com.bytedance.covode.number.Covode;
import com.bytedance.tux.icon.TuxIconView;
import com.google.android.material.bottomsheet.BottomSheetBehavior;
import com.ss.android.ugc.aweme.crossplatform.view.CrossPlatformWebView;
import com.zhiliaoapp.musically.R;

/* renamed from: X.Jrb  reason: case insensitive filesystem */
public final class DialogC50458Jrb extends AnonymousClass1MQ {
    public static final C50462Jrf LIZJ = new C50462Jrf((byte) 0);
    public CrossPlatformWebView LIZ;
    public BottomSheetBehavior<View> LIZIZ;
    public View LIZLLL;
    public TuxIconView LJ;
    public final View.OnClickListener LJFF = new View$OnClickListenerC50461Jre(this);

    static {
        Covode.recordClassIndex(69924);
    }

    /* JADX INFO: super call moved to the top of the method (can break code semantics) */
    public DialogC50458Jrb(Context context) {
        super(context, R.style.wt);
        C21090sc.LIZ(context);
    }

    @Override // X.AnonymousClass1MQ, X.DialogC25440zd
    public final void onCreate(Bundle bundle) {
        ViewGroup.LayoutParams layoutParams;
        Window window;
        Window window2;
        ViewGroup.LayoutParams layoutParams2 = null;
        try {
            if (Build.VERSION.SDK_INT >= 21 && (window2 = getWindow()) != null) {
                window2.addFlags(Integer.MIN_VALUE);
            }
        } catch (Exception e) {
            C16210kk.LIZ(3, null, e.getMessage());
        }
        super.onCreate(bundle);
        setContentView(R.layout.yd);
        if (Build.VERSION.SDK_INT >= 21 && (window = getWindow()) != null) {
            window.setStatusBarColor(0);
        }
        this.LIZLLL = findViewById(R.id.dob);
        this.LJ = (TuxIconView) findViewById(R.id.byg);
        this.LIZ = (CrossPlatformWebView) findViewById(R.id.aqg);
        TuxIconView tuxIconView = this.LJ;
        if (tuxIconView != null) {
            tuxIconView.setOnClickListener(this.LJFF);
        }
        CrossPlatformWebView crossPlatformWebView = this.LIZ;
        if (crossPlatformWebView != null) {
            CrossPlatformWebView.LIZ(crossPlatformWebView, "https://www.tiktok.com/legal/privacy-policy-row", false, null, 6);
        }
        View view = this.LIZLLL;
        if (view != null) {
            if (!(view == null || (layoutParams = view.getLayoutParams()) == null)) {
                layoutParams.height = -2;
                layoutParams2 = layoutParams;
            }
            view.setLayoutParams(layoutParams2);
        }
    }

    @Override // X.AnonymousClass1MQ
    public final void onStart() {
        ViewGroup.LayoutParams layoutParams;
        super.onStart();
        int LIZ2 = C97053rq.LIZ(((float) AnonymousClass0NQ.LIZIZ(getContext())) * 0.9f);
        View findViewById = findViewById(R.id.auv);
        if (findViewById != null) {
            findViewById.setBackground(null);
        }
        if (!(findViewById == null || (layoutParams = findViewById.getLayoutParams()) == null)) {
            layoutParams.height = LIZ2;
        }
        setOnShowListener(new DialogInterface$OnShowListenerC50459Jrc(this, findViewById, LIZ2));
    }
}