得物.apk(点击下载) / PrivacyDialog.java


package com.shizhuang.duapp.common.dialog;

import android.app.Activity;
import android.app.Dialog;
import android.content.Intent;
import android.net.Uri;
import android.os.Bundle;
import android.text.SpannableStringBuilder;
import android.text.TextPaint;
import android.text.TextUtils;
import android.text.method.LinkMovementMethod;
import android.text.style.ClickableSpan;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.view.Window;
import android.view.WindowManager;
import android.widget.ScrollView;
import android.widget.TextView;
import androidx.annotation.Keep;
import androidx.annotation.NonNull;
import androidx.fragment.app.FragmentActivity;
import com.knightboost.weaver.api.Scope;
import com.knightboost.weaver.api.annotations.Insert;
import com.knightboost.weaver.api.annotations.TargetClass;
import com.meituan.robust.ChangeQuickRedirect;
import com.meituan.robust.PatchProxy;
import com.meituan.robust.PatchProxyResult;
import com.meizu.cloud.pushsdk.constants.PushConstants;
import com.sensorsdata.analytics.android.sdk.SensorsDataAutoTrackHelper;
import com.sensorsdata.analytics.android.sdk.SensorsDataInstrumented;
import com.shizhuang.duapp.R;
import java.lang.ref.WeakReference;
import java.util.HashMap;
import kotlin.Metadata;
import kotlin.jvm.JvmStatic;
import kotlin.jvm.internal.DefaultConstructorMarker;
import kotlin.text.StringsKt__StringsKt;
import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;
import wb.c;

@Metadata(bv = {}, d1 = {"\u0000\f\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\b\u0006\u0018\u00002\u00020\u0001:\u0003\u0004\u0005\u0006B\u0007¢\u0006\u0004\b\u0002\u0010\u0003¨\u0006\u0007"}, d2 = {"Lcom/shizhuang/duapp/common/dialog/PrivacyDialog;", "Lcom/shizhuang/duapp/common/dialog/BaseDialogFragment;", "<init>", "()V", "a", "b", "OnAgreeClickListener", "du-dialog_release"}, k = 1, mv = {1, 4, 2})
/* compiled from: PrivacyDialog.kt */
public final class PrivacyDialog extends BaseDialogFragment {
    public static ChangeQuickRedirect changeQuickRedirect;
    @NotNull
    public static final a i = new a(null);
    public String e = "同意并继续";
    public String f = "不同意";

    /* renamed from: g  reason: collision with root package name */
    public OnAgreeClickListener f7536g;

    /* renamed from: h  reason: collision with root package name */
    public HashMap f7537h;

    @Metadata(bv = {1, 0, 3}, d1 = {"\u0000\u0018\n\u0002\u0018\u0002\n\u0002\u0010\u0000\n\u0000\n\u0002\u0010\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0002\bf\u0018\u00002\u00020\u0001J\u0012\u0010\u0002\u001a\u00020\u00032\b\u0010\u0004\u001a\u0004\u0018\u00010\u0005H&J\u0012\u0010\u0006\u001a\u00020\u00032\b\u0010\u0004\u001a\u0004\u0018\u00010\u0005H&¨\u0006\u0007"}, d2 = {"Lcom/shizhuang/duapp/common/dialog/PrivacyDialog$OnAgreeClickListener;", "", "onAgreeClicked", "", "view", "Landroid/view/View;", "onDisAgreeClicked", "du-dialog_release"}, k = 1, mv = {1, 4, 2})
    /* compiled from: PrivacyDialog.kt */
    public interface OnAgreeClickListener {
        void onAgreeClicked(@Nullable View view);

        void onDisAgreeClicked(@Nullable View view);
    }

    public class _boostWeave {
        public static ChangeQuickRedirect changeQuickRedirect;

        @TargetClass(scope = Scope.ALL_CHILDREN, value = "androidx.fragment.app.Fragment")
        @Insert(mayCreateSuper = true, value = "onCreate")
        @Keep
        public static void FragmentMethodWeaver_onCreate(PrivacyDialog privacyDialog, Bundle bundle) {
            if (!PatchProxy.proxy(new Object[]{privacyDialog, bundle}, null, changeQuickRedirect, true, 3053, new Class[]{PrivacyDialog.class, Bundle.class}, Void.TYPE).isSupported) {
                long currentTimeMillis = System.currentTimeMillis();
                PrivacyDialog.s(privacyDialog, bundle);
                long currentTimeMillis2 = System.currentTimeMillis();
                if (privacyDialog.getClass().getCanonicalName().equals("com.shizhuang.duapp.common.dialog.PrivacyDialog")) {
                    jn.b.f34396a.fragmentOnCreateMethod(privacyDialog, currentTimeMillis, currentTimeMillis2);
                }
            }
        }

        @TargetClass(scope = Scope.ALL_CHILDREN, value = "androidx.fragment.app.Fragment")
        @Insert(mayCreateSuper = true, value = "onCreateView")
        @Keep
        public static View FragmentMethodWeaver_onCreateView(@NonNull PrivacyDialog privacyDialog, @androidx.annotation.Nullable LayoutInflater layoutInflater, @androidx.annotation.Nullable ViewGroup viewGroup, Bundle bundle) {
            PatchProxyResult proxy = PatchProxy.proxy(new Object[]{privacyDialog, layoutInflater, viewGroup, bundle}, null, changeQuickRedirect, true, 3055, new Class[]{PrivacyDialog.class, LayoutInflater.class, ViewGroup.class, Bundle.class}, View.class);
            if (proxy.isSupported) {
                return (View) proxy.result;
            }
            long currentTimeMillis = System.currentTimeMillis();
            View u4 = PrivacyDialog.u(privacyDialog, layoutInflater, viewGroup, bundle);
            long currentTimeMillis2 = System.currentTimeMillis();
            if (privacyDialog.getClass().getCanonicalName().equals("com.shizhuang.duapp.common.dialog.PrivacyDialog")) {
                jn.b.f34396a.fragmentOnCreateViewMethod(privacyDialog, currentTimeMillis, currentTimeMillis2);
            }
            return u4;
        }

        @TargetClass(scope = Scope.ALL_CHILDREN, value = "androidx.fragment.app.Fragment")
        @Insert(mayCreateSuper = true, value = "onResume")
        @Keep
        public static void FragmentMethodWeaver_onResume(PrivacyDialog privacyDialog) {
            if (!PatchProxy.proxy(new Object[]{privacyDialog}, null, changeQuickRedirect, true, 3056, new Class[]{PrivacyDialog.class}, Void.TYPE).isSupported) {
                long currentTimeMillis = System.currentTimeMillis();
                PrivacyDialog.v(privacyDialog);
                long currentTimeMillis2 = System.currentTimeMillis();
                if (privacyDialog.getClass().getCanonicalName().equals("com.shizhuang.duapp.common.dialog.PrivacyDialog")) {
                    jn.b.f34396a.fragmentOnResumeMethod(privacyDialog, currentTimeMillis, currentTimeMillis2);
                }
            }
        }

        @TargetClass(scope = Scope.ALL_CHILDREN, value = "androidx.fragment.app.Fragment")
        @Insert(mayCreateSuper = true, value = "onStart")
        @Keep
        public static void FragmentMethodWeaver_onStart(PrivacyDialog privacyDialog) {
            if (!PatchProxy.proxy(new Object[]{privacyDialog}, null, changeQuickRedirect, true, 3054, new Class[]{PrivacyDialog.class}, Void.TYPE).isSupported) {
                long currentTimeMillis = System.currentTimeMillis();
                PrivacyDialog.t(privacyDialog);
                long currentTimeMillis2 = System.currentTimeMillis();
                if (privacyDialog.getClass().getCanonicalName().equals("com.shizhuang.duapp.common.dialog.PrivacyDialog")) {
                    jn.b.f34396a.fragmentOnStartMethod(privacyDialog, currentTimeMillis, currentTimeMillis2);
                }
            }
        }

        @TargetClass(scope = Scope.ALL_CHILDREN, value = "androidx.fragment.app.Fragment")
        @Insert(mayCreateSuper = true, value = "onViewCreated")
        @Keep
        public static void FragmentMethodWeaver_onViewCreated(@NonNull PrivacyDialog privacyDialog, @androidx.annotation.Nullable View view, Bundle bundle) {
            if (!PatchProxy.proxy(new Object[]{privacyDialog, view, bundle}, null, changeQuickRedirect, true, 3057, new Class[]{PrivacyDialog.class, View.class, Bundle.class}, Void.TYPE).isSupported) {
                long currentTimeMillis = System.currentTimeMillis();
                PrivacyDialog.w(privacyDialog, view, bundle);
                long currentTimeMillis2 = System.currentTimeMillis();
                if (privacyDialog.getClass().getCanonicalName().equals("com.shizhuang.duapp.common.dialog.PrivacyDialog")) {
                    jn.b.f34396a.fragmentOnViewCreatedMethod(privacyDialog, currentTimeMillis, currentTimeMillis2);
                }
            }
        }
    }

    /* compiled from: PrivacyDialog.kt */
    public static final class a {
        public static ChangeQuickRedirect changeQuickRedirect;

        public a(DefaultConstructorMarker defaultConstructorMarker) {
        }

        @JvmStatic
        @NotNull
        public final PrivacyDialog a(@Nullable String str, @Nullable String str2, int i, @NotNull OnAgreeClickListener onAgreeClickListener) {
            PatchProxyResult proxy = PatchProxy.proxy(new Object[]{str, str2, new Integer(i), onAgreeClickListener}, this, changeQuickRedirect, false, 3046, new Class[]{String.class, String.class, Integer.TYPE, OnAgreeClickListener.class}, PrivacyDialog.class);
            if (proxy.isSupported) {
                return (PrivacyDialog) proxy.result;
            }
            PrivacyDialog privacyDialog = new PrivacyDialog();
            Bundle arguments = privacyDialog.getArguments();
            if (arguments == null) {
                arguments = new Bundle();
            }
            arguments.putString(PushConstants.TITLE, str);
            arguments.putString(PushConstants.CONTENT, str2);
            arguments.putInt("type", i);
            if (!PatchProxy.proxy(new Object[]{onAgreeClickListener}, privacyDialog, PrivacyDialog.changeQuickRedirect, false, 3033, new Class[]{OnAgreeClickListener.class}, Void.TYPE).isSupported) {
                privacyDialog.f7536g = onAgreeClickListener;
            }
            privacyDialog.setArguments(arguments);
            return privacyDialog;
        }
    }

    /* compiled from: PrivacyDialog.kt */
    public static final class b extends ClickableSpan {
        public static ChangeQuickRedirect changeQuickRedirect;
        @NotNull
        public WeakReference<Activity> b;
        @Nullable

        /* renamed from: c  reason: collision with root package name */
        public String f7538c;

        public b(@Nullable Activity activity, @Nullable String str) {
            this.f7538c = str;
            this.b = new WeakReference<>(activity);
        }

        @SensorsDataInstrumented
        public void onClick(@NotNull View view) {
            boolean z = false;
            if (!PatchProxy.proxy(new Object[]{view}, this, changeQuickRedirect, false, 3049, new Class[]{View.class}, Void.TYPE).isSupported) {
                Activity activity = this.b.get();
                if (activity == null) {
                    SensorsDataAutoTrackHelper.trackViewOnClick(view);
                } else if (xh.a.a(view, 1000)) {
                    SensorsDataAutoTrackHelper.trackViewOnClick(view);
                } else {
                    String str = this.f7538c;
                    if (str != null) {
                        if (str.length() == 0) {
                            z = true;
                        }
                        if (z) {
                            this.f7538c = "https://cdn-fast.dewu.com/nezha-plus/detail/61b1c2ca11d1cb2fe24f756a?duWebviewBg=%23ffffff";
                        }
                    }
                    Intent intent = new Intent();
                    intent.setAction("android.intent.action.VIEW");
                    intent.setData(Uri.parse(this.f7538c));
                    activity.startActivity(intent);
                    SensorsDataAutoTrackHelper.trackViewOnClick(view);
                }
            }
        }

        public void updateDrawState(@NotNull TextPaint textPaint) {
            if (!PatchProxy.proxy(new Object[]{textPaint}, this, changeQuickRedirect, false, 3050, new Class[]{TextPaint.class}, Void.TYPE).isSupported) {
                super.updateDrawState(textPaint);
                Activity activity = this.b.get();
                if (activity != null) {
                    textPaint.setColor(activity.getResources().getColor(R.color.black_14151A));
                    textPaint.setUnderlineText(false);
                    textPaint.setFakeBoldText(true);
                }
            }
        }
    }

    public static void s(PrivacyDialog privacyDialog, Bundle bundle) {
        if (!PatchProxy.proxy(new Object[]{bundle}, privacyDialog, changeQuickRedirect, false, 3030, new Class[]{Bundle.class}, Void.TYPE).isSupported) {
            super.onCreate(bundle);
            privacyDialog.setStyle(1, R.style.RadiusDialog);
        }
    }

    public static void t(PrivacyDialog privacyDialog) {
        if (!PatchProxy.proxy(new Object[0], privacyDialog, changeQuickRedirect, false, 3039, new Class[0], Void.TYPE).isSupported) {
            super.onStart();
        }
    }

    public static View u(PrivacyDialog privacyDialog, LayoutInflater layoutInflater, ViewGroup viewGroup, Bundle bundle) {
        PatchProxyResult proxy = PatchProxy.proxy(new Object[]{layoutInflater, viewGroup, bundle}, privacyDialog, changeQuickRedirect, false, 3041, new Class[]{LayoutInflater.class, ViewGroup.class, Bundle.class}, View.class);
        return proxy.isSupported ? (View) proxy.result : super.onCreateView(layoutInflater, viewGroup, bundle);
    }

    public static void v(PrivacyDialog privacyDialog) {
        if (!PatchProxy.proxy(new Object[0], privacyDialog, changeQuickRedirect, false, 3043, new Class[0], Void.TYPE).isSupported) {
            super.onResume();
        }
    }

    public static void w(PrivacyDialog privacyDialog, View view, Bundle bundle) {
        if (!PatchProxy.proxy(new Object[]{view, bundle}, privacyDialog, changeQuickRedirect, false, 3045, new Class[]{View.class, Bundle.class}, Void.TYPE).isSupported) {
            super.onViewCreated(view, bundle);
        }
    }

    @JvmStatic
    @NotNull
    public static final PrivacyDialog x(@Nullable String str, @Nullable String str2, int i3, @NotNull OnAgreeClickListener onAgreeClickListener) {
        PatchProxyResult proxy = PatchProxy.proxy(new Object[]{str, str2, new Integer(i3), onAgreeClickListener}, null, changeQuickRedirect, true, 3037, new Class[]{String.class, String.class, Integer.TYPE, OnAgreeClickListener.class}, PrivacyDialog.class);
        return proxy.isSupported ? (PrivacyDialog) proxy.result : i.a(str, str2, i3, onAgreeClickListener);
    }

    public View _$_findCachedViewById(int i3) {
        PatchProxyResult proxy = PatchProxy.proxy(new Object[]{new Integer(i3)}, this, changeQuickRedirect, false, 3035, new Class[]{Integer.TYPE}, View.class);
        if (proxy.isSupported) {
            return (View) proxy.result;
        }
        if (this.f7537h == null) {
            this.f7537h = new HashMap();
        }
        View view = (View) this.f7537h.get(Integer.valueOf(i3));
        if (view != null) {
            return view;
        }
        View view2 = getView();
        if (view2 == null) {
            return null;
        }
        View findViewById = view2.findViewById(i3);
        this.f7537h.put(Integer.valueOf(i3), findViewById);
        return findViewById;
    }

    @Override // com.shizhuang.duapp.common.dialog.DuDialogFragment
    public void g() {
        Window window;
        if (!PatchProxy.proxy(new Object[0], this, changeQuickRedirect, false, 3028, new Class[0], Void.TYPE).isSupported) {
            super.g();
            Dialog dialog = getDialog();
            if (dialog != null) {
                dialog.setCanceledOnTouchOutside(false);
                Dialog dialog2 = getDialog();
                if (dialog2 != null && (window = dialog2.getWindow()) != null) {
                    WindowManager.LayoutParams f12 = g.a.f(window, 0, 0, 0, 0);
                    f12.gravity = 17;
                    f12.width = -2;
                    f12.height = -2;
                    window.setAttributes(f12);
                }
            }
        }
    }

    @Override // com.shizhuang.duapp.common.dialog.DuDialogFragment, androidx.appcompat.app.AppCompatDialogFragment, androidx.fragment.app.Fragment, com.shizhuang.duapp.common.dialog.BaseDialogFragment, androidx.fragment.app.DialogFragment
    public void onCreate(Bundle bundle) {
        if (!PatchProxy.proxy(new Object[]{bundle}, this, changeQuickRedirect, false, 3029, new Class[]{Bundle.class}, Void.TYPE).isSupported) {
            _boostWeave.FragmentMethodWeaver_onCreate(this, bundle);
        }
    }

    @Override // com.shizhuang.duapp.common.dialog.DuDialogFragment, androidx.appcompat.app.AppCompatDialogFragment, androidx.fragment.app.Fragment, com.shizhuang.duapp.common.dialog.BaseDialogFragment, androidx.fragment.app.DialogFragment
    public View onCreateView(LayoutInflater layoutInflater, ViewGroup viewGroup, Bundle bundle) {
        PatchProxyResult proxy = PatchProxy.proxy(new Object[]{layoutInflater, viewGroup, bundle}, this, changeQuickRedirect, false, 3040, new Class[]{LayoutInflater.class, ViewGroup.class, Bundle.class}, View.class);
        return proxy.isSupported ? (View) proxy.result : _boostWeave.FragmentMethodWeaver_onCreateView(this, layoutInflater, viewGroup, bundle);
    }

    @Override // androidx.fragment.app.Fragment, com.shizhuang.duapp.common.dialog.BaseDialogFragment, androidx.fragment.app.DialogFragment
    public void onDestroyView() {
        HashMap hashMap;
        super.onDestroyView();
        if (!PatchProxy.proxy(new Object[0], this, changeQuickRedirect, false, 3036, new Class[0], Void.TYPE).isSupported && (hashMap = this.f7537h) != null) {
            hashMap.clear();
        }
    }

    @Override // com.shizhuang.duapp.common.dialog.DuDialogFragment, androidx.appcompat.app.AppCompatDialogFragment, androidx.fragment.app.Fragment, com.shizhuang.duapp.common.dialog.BaseDialogFragment, androidx.fragment.app.DialogFragment
    public void onResume() {
        if (!PatchProxy.proxy(new Object[0], this, changeQuickRedirect, false, 3042, new Class[0], Void.TYPE).isSupported) {
            _boostWeave.FragmentMethodWeaver_onResume(this);
        }
    }

    @Override // com.shizhuang.duapp.common.dialog.DuDialogFragment, androidx.appcompat.app.AppCompatDialogFragment, androidx.fragment.app.Fragment, com.shizhuang.duapp.common.dialog.BaseDialogFragment, androidx.fragment.app.DialogFragment
    public void onStart() {
        if (!PatchProxy.proxy(new Object[0], this, changeQuickRedirect, false, 3038, new Class[0], Void.TYPE).isSupported) {
            _boostWeave.FragmentMethodWeaver_onStart(this);
        }
    }

    @Override // com.shizhuang.duapp.common.dialog.DuDialogFragment, androidx.appcompat.app.AppCompatDialogFragment, androidx.fragment.app.Fragment, com.shizhuang.duapp.common.dialog.BaseDialogFragment, androidx.fragment.app.DialogFragment
    public void onViewCreated(View view, Bundle bundle) {
        if (!PatchProxy.proxy(new Object[]{view, bundle}, this, changeQuickRedirect, false, 3044, new Class[]{View.class, Bundle.class}, Void.TYPE).isSupported) {
            _boostWeave.FragmentMethodWeaver_onViewCreated(this, view, bundle);
        }
    }

    @Override // com.shizhuang.duapp.common.dialog.BaseDialogFragment
    public int q() {
        PatchProxyResult proxy = PatchProxy.proxy(new Object[0], this, changeQuickRedirect, false, 3031, new Class[0], Integer.TYPE);
        return proxy.isSupported ? ((Integer) proxy.result).intValue() : R.layout.dialog_privacy;
    }

    @Override // com.shizhuang.duapp.common.dialog.BaseDialogFragment
    public void r(@NotNull View view) {
        Bundle arguments;
        String str;
        if (!PatchProxy.proxy(new Object[]{view}, this, changeQuickRedirect, false, 3032, new Class[]{View.class}, Void.TYPE).isSupported && (arguments = getArguments()) != null) {
            String string = arguments.getString(PushConstants.TITLE);
            String string2 = arguments.getString(PushConstants.CONTENT);
            int i3 = arguments.getInt("type", 1);
            ((TextView) _$_findCachedViewById(R.id.title_tv)).setText(string);
            ((TextView) _$_findCachedViewById(R.id.agree_tv)).setText(this.e);
            ((TextView) _$_findCachedViewById(R.id.disagree_tv)).setText(this.f);
            ((TextView) _$_findCachedViewById(R.id.agree_tv)).setOnClickListener(new PrivacyDialog$initView$1(this));
            ((TextView) _$_findCachedViewById(R.id.disagree_tv)).setOnClickListener(new PrivacyDialog$initView$2(this));
            if (i3 == 1) {
                if (getContext() != null) {
                    ((TextView) _$_findCachedViewById(R.id.title_tv)).setTextSize(1, 18.0f);
                    ((TextView) _$_findCachedViewById(R.id.title_tv)).setTextColor(getResources().getColor(R.color.black_14151A));
                    ((TextView) _$_findCachedViewById(R.id.title_tv)).setGravity(1);
                }
                ((ScrollView) _$_findCachedViewById(R.id.content_scroll)).setVisibility(0);
                if (TextUtils.isEmpty(string2)) {
                    string2 = "1.为提供服务收集使用的信息:为了实现账户注册与登录,我们需要收集手机号码、用户账号、密码;为了实现网络身份识别,我们需要收集头像、昵称、性别、生日及其他信息;为了实现实名认证,我们需要收集身份证件信息、姓名;为了实现履约交易,我们需要收集交易商品、交易时间、交易支付信息、收货人姓名、地址、联系方式;为了实现社区功能,我们会收集您发布的内容信息;为了实现商品、活动信息个性化展示,我们需要收集设备及系统信息、服务日志信息;为了实现客户服务,我们需要收集账号信息、订单信息、联系方式及其他信息;为了实现风控与安全管理,我们需要收集设备信息、历史上网记录、日志信息、订单信息及其他必要信息。\n2.为提供服务申请使用的权限:为实现应用中社区发布标记、发售日历、拍摄、扫码、发布、上传、添加好友、直播预告、参加活动、直播小窗播放及其他平台功能,我们在您明示同意授权后会申请使用您的位置、相机、相册、麦克风、通讯录、日历、运动与健康、悬浮窗以及其他必要权限。\n3.向第三方共享的个人信息:根据行政、司法等有权机关的要求提供必要信息;为提供如快递物流、第三方支付、短信发送等服务与合作的第三方共享服务的必要信息。我们会与第三方签署严格的信息保护和保密协议,要求他们遵守协议并采取安全措施来保护您的个人信息。\n4.用户个人信息权益保障:您有权管理您的个人信息,包括查询、复制、更正和删除您的信息,改变您同意的范围或撤回同意,注销您的账号。";
                }
                ((TextView) _$_findCachedViewById(R.id.tv_content)).setText(string2);
                SpannableStringBuilder spannableStringBuilder = new SpannableStringBuilder("欢迎使用得物!\n请您了解,您需要注册成为得物用户后方可使用本应用的网上购物功能,有关注册,您可以通过《用户协议》详细了解我们为您提供的服务。请您在使用我们的服务前仔细阅读《隐私权政策》全文,并充分理解。根据《常见类型移动互联网应用程序必要个人信息范围规定》,得物App属于网上购物类,主要功能为购买商品,必要个人信息包括:注册用户移动电话号码;收货人姓名(名称)、地址、联系电话;支付时间、支付金额、支付渠道等支付信息。请您知悉,您同意隐私政策仅代表您已了解应用提供的功能,以及功能运行所需的必要个人信息,并不代表您已同意我们可以收集非必要个人信息,非必要个人信息会根据您使用过程中的授权情况单独征求您的同意。 为方便您更直观了解个人信息处理情况,我们也向您提供《隐私政策摘要》。我们会不断完善安全管理与技术保障措施,保护您的个人信息。");
                FragmentActivity activity = getActivity();
                PatchProxyResult proxy = PatchProxy.proxy(new Object[0], null, c.changeQuickRedirect, true, 953, new Class[0], String.class);
                if (proxy.isSupported) {
                    str = (String) proxy.result;
                } else {
                    str = c.f39564a.getString("privacyPolicyUrl", "");
                }
                b bVar = new b(activity, str);
                int indexOf$default = StringsKt__StringsKt.indexOf$default((CharSequence) "欢迎使用得物!\n请您了解,您需要注册成为得物用户后方可使用本应用的网上购物功能,有关注册,您可以通过《用户协议》详细了解我们为您提供的服务。请您在使用我们的服务前仔细阅读《隐私权政策》全文,并充分理解。根据《常见类型移动互联网应用程序必要个人信息范围规定》,得物App属于网上购物类,主要功能为购买商品,必要个人信息包括:注册用户移动电话号码;收货人姓名(名称)、地址、联系电话;支付时间、支付金额、支付渠道等支付信息。请您知悉,您同意隐私政策仅代表您已了解应用提供的功能,以及功能运行所需的必要个人信息,并不代表您已同意我们可以收集非必要个人信息,非必要个人信息会根据您使用过程中的授权情况单独征求您的同意。 为方便您更直观了解个人信息处理情况,我们也向您提供《隐私政策摘要》。我们会不断完善安全管理与技术保障措施,保护您的个人信息。", "《隐私权政策》", 0, false, 6, (Object) null);
                spannableStringBuilder.setSpan(bVar, indexOf$default, indexOf$default + 7, 33);
                b bVar2 = new b(getActivity(), "https://cdn-fast.dewu.com/nezha-plus/detail/5f8571e03c3f9d77f3aff086?duWebviewBg=%23ffffff");
                int indexOf$default2 = StringsKt__StringsKt.indexOf$default((CharSequence) "欢迎使用得物!\n请您了解,您需要注册成为得物用户后方可使用本应用的网上购物功能,有关注册,您可以通过《用户协议》详细了解我们为您提供的服务。请您在使用我们的服务前仔细阅读《隐私权政策》全文,并充分理解。根据《常见类型移动互联网应用程序必要个人信息范围规定》,得物App属于网上购物类,主要功能为购买商品,必要个人信息包括:注册用户移动电话号码;收货人姓名(名称)、地址、联系电话;支付时间、支付金额、支付渠道等支付信息。请您知悉,您同意隐私政策仅代表您已了解应用提供的功能,以及功能运行所需的必要个人信息,并不代表您已同意我们可以收集非必要个人信息,非必要个人信息会根据您使用过程中的授权情况单独征求您的同意。 为方便您更直观了解个人信息处理情况,我们也向您提供《隐私政策摘要》。我们会不断完善安全管理与技术保障措施,保护您的个人信息。", "《用户协议》", 0, false, 6, (Object) null);
                spannableStringBuilder.setSpan(bVar2, indexOf$default2, indexOf$default2 + 6, 33);
                ((TextView) _$_findCachedViewById(R.id.tv_privacy)).setText(spannableStringBuilder);
                ((TextView) _$_findCachedViewById(R.id.tv_privacy)).setMovementMethod(LinkMovementMethod.getInstance());
                return;
            }
            if (getContext() != null) {
                ((TextView) _$_findCachedViewById(R.id.title_tv)).setTextSize(1, 16.0f);
                ((TextView) _$_findCachedViewById(R.id.title_tv)).setTextColor(getResources().getColor(R.color.black));
                ((TextView) _$_findCachedViewById(R.id.title_tv)).setGravity(3);
            }
            ((ScrollView) _$_findCachedViewById(R.id.content_scroll)).setVisibility(8);
        }
    }

    public final void y(@NotNull String str, @NotNull String str2) {
        if (!PatchProxy.proxy(new Object[]{str, str2}, this, changeQuickRedirect, false, 3034, new Class[]{String.class, String.class}, Void.TYPE).isSupported) {
            if (!ei.a.a(str)) {
                this.e = str;
            }
            if (!ei.a.a(str2)) {
                this.f = str2;
            }
        }
    }
}