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


package com.shizhuang.duapp.modules.depositv2.module.inwarehouse.dialog;

import android.app.Dialog;
import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.view.Window;
import android.view.WindowManager;
import android.widget.ImageView;
import android.widget.TextView;
import androidx.annotation.Keep;
import androidx.annotation.NonNull;
import androidx.annotation.Nullable;
import cd.k;
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.shizhuang.duapp.R;
import com.shizhuang.duapp.common.dialog.BaseDialogFragment;
import com.shizhuang.duapp.common.widget.font.FontText;
import com.shizhuang.duapp.libs.duimageloaderview.DuImageLoaderView;
import com.shizhuang.duapp.modules.depositv2.module.inwarehouse.model.DepositReminderModel;
import java.util.HashMap;
import jn.b;
import kotlin.Metadata;
import kotlin.jvm.internal.DefaultConstructorMarker;
import org.jetbrains.annotations.NotNull;

@Metadata(bv = {}, d1 = {"\u0000\f\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\b\u0004\u0018\u00002\u00020\u0001:\u0001\u0004B\u0007¢\u0006\u0004\b\u0002\u0010\u0003¨\u0006\u0005"}, d2 = {"Lcom/shizhuang/duapp/modules/depositv2/module/inwarehouse/dialog/DepositReminderDialog;", "Lcom/shizhuang/duapp/common/dialog/BaseDialogFragment;", "<init>", "()V", "a", "du_deposit_release"}, k = 1, mv = {1, 4, 2})
/* compiled from: DepositReminderDialog.kt */
public final class DepositReminderDialog extends BaseDialogFragment {
    public static ChangeQuickRedirect changeQuickRedirect;
    @NotNull

    /* renamed from: g  reason: collision with root package name */
    public static final a f12487g = new a(null);
    public DepositReminderModel e;
    public HashMap f;

    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(DepositReminderDialog depositReminderDialog, Bundle bundle) {
            if (!PatchProxy.proxy(new Object[]{depositReminderDialog, bundle}, null, changeQuickRedirect, true, 92083, new Class[]{DepositReminderDialog.class, Bundle.class}, Void.TYPE).isSupported) {
                long currentTimeMillis = System.currentTimeMillis();
                DepositReminderDialog.s(depositReminderDialog, bundle);
                long currentTimeMillis2 = System.currentTimeMillis();
                if (depositReminderDialog.getClass().getCanonicalName().equals("com.shizhuang.duapp.modules.depositv2.module.inwarehouse.dialog.DepositReminderDialog")) {
                    b.f34396a.fragmentOnCreateMethod(depositReminderDialog, currentTimeMillis, currentTimeMillis2);
                }
            }
        }

        @TargetClass(scope = Scope.ALL_CHILDREN, value = "androidx.fragment.app.Fragment")
        @Insert(mayCreateSuper = true, value = "onCreateView")
        @Keep
        public static View FragmentMethodWeaver_onCreateView(@NonNull DepositReminderDialog depositReminderDialog, @Nullable LayoutInflater layoutInflater, @Nullable ViewGroup viewGroup, Bundle bundle) {
            PatchProxyResult proxy = PatchProxy.proxy(new Object[]{depositReminderDialog, layoutInflater, viewGroup, bundle}, null, changeQuickRedirect, true, 92085, new Class[]{DepositReminderDialog.class, LayoutInflater.class, ViewGroup.class, Bundle.class}, View.class);
            if (proxy.isSupported) {
                return (View) proxy.result;
            }
            long currentTimeMillis = System.currentTimeMillis();
            View u4 = DepositReminderDialog.u(depositReminderDialog, layoutInflater, viewGroup, bundle);
            long currentTimeMillis2 = System.currentTimeMillis();
            if (depositReminderDialog.getClass().getCanonicalName().equals("com.shizhuang.duapp.modules.depositv2.module.inwarehouse.dialog.DepositReminderDialog")) {
                b.f34396a.fragmentOnCreateViewMethod(depositReminderDialog, 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(DepositReminderDialog depositReminderDialog) {
            if (!PatchProxy.proxy(new Object[]{depositReminderDialog}, null, changeQuickRedirect, true, 92086, new Class[]{DepositReminderDialog.class}, Void.TYPE).isSupported) {
                long currentTimeMillis = System.currentTimeMillis();
                DepositReminderDialog.v(depositReminderDialog);
                long currentTimeMillis2 = System.currentTimeMillis();
                if (depositReminderDialog.getClass().getCanonicalName().equals("com.shizhuang.duapp.modules.depositv2.module.inwarehouse.dialog.DepositReminderDialog")) {
                    b.f34396a.fragmentOnResumeMethod(depositReminderDialog, currentTimeMillis, currentTimeMillis2);
                }
            }
        }

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

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

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

        public a(DefaultConstructorMarker defaultConstructorMarker) {
        }
    }

    public static void s(DepositReminderDialog depositReminderDialog, Bundle bundle) {
        if (!PatchProxy.proxy(new Object[]{bundle}, depositReminderDialog, changeQuickRedirect, false, 92070, new Class[]{Bundle.class}, Void.TYPE).isSupported) {
            super.onCreate(bundle);
            Bundle arguments = depositReminderDialog.getArguments();
            depositReminderDialog.e = arguments != null ? (DepositReminderModel) arguments.getParcelable("reminderData") : null;
        }
    }

    public static void t(DepositReminderDialog depositReminderDialog) {
        Window window;
        Window window2;
        Window window3;
        Window window4;
        if (!PatchProxy.proxy(new Object[0], depositReminderDialog, changeQuickRedirect, false, 92072, new Class[0], Void.TYPE).isSupported) {
            super.onStart();
            Dialog dialog = depositReminderDialog.getDialog();
            WindowManager.LayoutParams attributes = (dialog == null || (window4 = dialog.getWindow()) == null) ? null : window4.getAttributes();
            Dialog dialog2 = depositReminderDialog.getDialog();
            if (!(dialog2 == null || (window3 = dialog2.getWindow()) == null)) {
                window3.setGravity(17);
            }
            Dialog dialog3 = depositReminderDialog.getDialog();
            if (!(dialog3 == null || (window2 = dialog3.getWindow()) == null)) {
                window2.setLayout(-1, -1);
            }
            Dialog dialog4 = depositReminderDialog.getDialog();
            if (dialog4 != null && (window = dialog4.getWindow()) != null) {
                window.setAttributes(attributes);
            }
        }
    }

    public static View u(DepositReminderDialog depositReminderDialog, LayoutInflater layoutInflater, ViewGroup viewGroup, Bundle bundle) {
        PatchProxyResult proxy = PatchProxy.proxy(new Object[]{layoutInflater, viewGroup, bundle}, depositReminderDialog, changeQuickRedirect, false, 92077, 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(DepositReminderDialog depositReminderDialog) {
        if (!PatchProxy.proxy(new Object[0], depositReminderDialog, changeQuickRedirect, false, 92079, new Class[0], Void.TYPE).isSupported) {
            super.onResume();
        }
    }

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

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

    @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, 92069, 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, 92076, 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, 92075, new Class[0], Void.TYPE).isSupported && (hashMap = this.f) != 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, 92078, 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, 92071, 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, 92080, new Class[]{View.class, Bundle.class}, Void.TYPE).isSupported) {
            _boostWeave.FragmentMethodWeaver_onViewCreated(this, view, bundle);
        }
    }

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

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

    @Override // com.shizhuang.duapp.common.dialog.BaseDialogFragment
    public void r(@NotNull View view) {
        if (!PatchProxy.proxy(new Object[]{view}, this, changeQuickRedirect, false, 92068, new Class[]{View.class}, Void.TYPE).isSupported) {
            DepositReminderModel depositReminderModel = this.e;
            if (depositReminderModel != null) {
                ((TextView) _$_findCachedViewById(R.id.reminderQueryCouponText)).setText("请在“我 > 优惠券”内查看");
                ((TextView) _$_findCachedViewById(R.id.reminderDialogTitle)).setText(depositReminderModel.getSubtitle());
                ((TextView) _$_findCachedViewById(R.id.reminderCouponMoneyDes)).setText(depositReminderModel.getCondition());
                ((TextView) _$_findCachedViewById(R.id.reminderCouponTitle)).setText(depositReminderModel.getCouponName());
                ((TextView) _$_findCachedViewById(R.id.reminderCouponTime)).setText(depositReminderModel.getValidTime());
                ((FontText) _$_findCachedViewById(R.id.reminderCouponMoney)).c(k.g(depositReminderModel.getCouponAccount(), false, null, 3), 18, 30);
                ((DuImageLoaderView) _$_findCachedViewById(R.id.reminderIconBg)).i("https://apk.poizon.com/duApp/Android_Config/resource/mall/app/merchant/deposit_reminder_popover.webp").x();
                ((ImageView) _$_findCachedViewById(R.id.reminderCloseIcon)).setOnClickListener(new DepositReminderDialog$initView$1(this));
                return;
            }
            dismiss();
        }
    }
}