导航菜单

页面标题

页面副标题

Hopscotch v9.7.2 - c0.java 源代码

正在查看: Hopscotch v9.7.2 应用的 c0.java JAVA 源代码文件

本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。


package in.hopscotch.android.activity;

import android.app.Dialog;
import android.content.DialogInterface;
import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.view.Window;
import android.widget.FrameLayout;
import com.google.android.material.bottomsheet.BottomSheetBehavior;
import kotlin.Metadata;
import kotlin.jvm.internal.Intrinsics;
import org.jetbrains.annotations.NotNull;

@Metadata
public final class c0 extends com.google.android.material.bottomsheet.j {
    private in.hopscotch.android.databinding.a4 binding;
    private BottomSheetBehavior<?> bottomSheetBehavior;

    @NotNull
    private final BottomSheetBehavior.c bottomSheetCallback = new a();

    public static final class a extends BottomSheetBehavior.c {
        public a() {
        }

        public final void onSlide(@NotNull View view, float f) {
            Intrinsics.checkNotNullParameter(view, "bottomSheet");
        }

        public final void onStateChanged(@NotNull View view, int i) {
            Intrinsics.checkNotNullParameter(view, "bottomSheet");
            if (i == 1) {
                c0 c0Var = c0.this;
                BottomSheetBehavior bottomSheetBehavior = c0Var.bottomSheetBehavior;
                if (bottomSheetBehavior == null) {
                    Intrinsics.throwUninitializedPropertyAccessException("bottomSheetBehavior");
                    bottomSheetBehavior = null;
                }
                bottomSheetBehavior.k0(4);
                c0Var.dismissAllowingStateLoss();
            }
        }
    }

    public static void A(c0 c0Var, DialogInterface dialogInterface) {
        Intrinsics.checkNotNullParameter(c0Var, "this$0");
        Intrinsics.checkNotNullParameter(dialogInterface, "dialog");
        FrameLayout frameLayout = (FrameLayout) ((com.google.android.material.bottomsheet.i) dialogInterface).findViewById(2131362531);
        int i = (int) (c0Var.requireActivity().getResources().getDisplayMetrics().heightPixels * 0.9d);
        if (frameLayout != null) {
            BottomSheetBehavior<?> X = BottomSheetBehavior.X(frameLayout);
            Intrinsics.checkNotNullExpressionValue(X, "from(...)");
            c0Var.bottomSheetBehavior = X;
        }
        BottomSheetBehavior<?> bottomSheetBehavior = c0Var.bottomSheetBehavior;
        BottomSheetBehavior<?> bottomSheetBehavior2 = null;
        if (bottomSheetBehavior == null) {
            Intrinsics.throwUninitializedPropertyAccessException("bottomSheetBehavior");
            bottomSheetBehavior = null;
        }
        bottomSheetBehavior.j0(i);
        BottomSheetBehavior<?> bottomSheetBehavior3 = c0Var.bottomSheetBehavior;
        if (bottomSheetBehavior3 == null) {
            Intrinsics.throwUninitializedPropertyAccessException("bottomSheetBehavior");
        } else {
            bottomSheetBehavior2 = bottomSheetBehavior3;
        }
        bottomSheetBehavior2.f0(c0Var.bottomSheetCallback);
        if (frameLayout != null) {
            frameLayout.setBackgroundColor(c0Var.requireContext().getResources().getColor(in.hopscotch.android.components.m.full_transparent));
        }
    }

    @NotNull
    public final Dialog onCreateDialog(Bundle bundle) {
        com.google.android.material.bottomsheet.i onCreateDialog = super.onCreateDialog(bundle);
        Intrinsics.checkNotNull(onCreateDialog, "null cannot be cast to non-null type com.google.android.material.bottomsheet.BottomSheetDialog");
        com.google.android.material.bottomsheet.i iVar = onCreateDialog;
        try {
            Window window = iVar.getWindow();
            Intrinsics.checkNotNull(window);
            window.addFlags(67108864);
            Window window2 = iVar.getWindow();
            Intrinsics.checkNotNull(window2);
            window2.getAttributes().windowAnimations = 2132083050;
            iVar.setOnShowListener(new b0(this, 0));
        } catch (Exception e) {
            in.hopscotch.android.util.g.b(e);
        }
        return iVar;
    }

    @NotNull
    public final View onCreateView(@NotNull LayoutInflater layoutInflater, ViewGroup viewGroup, Bundle bundle) {
        Intrinsics.checkNotNullParameter(layoutInflater, "inflater");
        int i = in.hopscotch.android.databinding.a4.i;
        in.hopscotch.android.databinding.a4 a4Var = (in.hopscotch.android.databinding.a4) androidx.databinding.p.M(layoutInflater, 2131558622, viewGroup, false, androidx.databinding.g.e());
        Intrinsics.checkNotNullExpressionValue(a4Var, "inflate(...)");
        this.binding = a4Var;
        in.hopscotch.android.databinding.a4 a4Var2 = null;
        if (a4Var == null) {
            Intrinsics.throwUninitializedPropertyAccessException("binding");
            a4Var = null;
        }
        a4Var.e.setOnClickListener(new com.clevertap.android.sdk.inapp.y(this, 3));
        in.hopscotch.android.databinding.a4 a4Var3 = this.binding;
        if (a4Var3 == null) {
            Intrinsics.throwUninitializedPropertyAccessException("binding");
        } else {
            a4Var2 = a4Var3;
        }
        View E = a4Var2.E();
        Intrinsics.checkNotNullExpressionValue(E, "getRoot(...)");
        return E;
    }

    public final void onViewCreated(@NotNull View view, Bundle bundle) {
        Intrinsics.checkNotNullParameter(view, "view");
        super/*androidx.fragment.app.Fragment*/.onViewCreated(view, bundle);
        com.bumptech.glide.l l = com.bumptech.glide.c.i(getContext()).e(this).l("https://static.hopscotch.in/MRP-Grey.jpg");
        in.hopscotch.android.databinding.a4 a4Var = this.binding;
        in.hopscotch.android.databinding.a4 a4Var2 = null;
        if (a4Var == null) {
            Intrinsics.throwUninitializedPropertyAccessException("binding");
            a4Var = null;
        }
        l.q0(a4Var.f);
        com.bumptech.glide.l l2 = com.bumptech.glide.c.i(getContext()).e(this).l("https://static.hopscotch.in/Return-grey.png");
        in.hopscotch.android.databinding.a4 a4Var3 = this.binding;
        if (a4Var3 == null) {
            Intrinsics.throwUninitializedPropertyAccessException("binding");
        } else {
            a4Var2 = a4Var3;
        }
        l2.q0(a4Var2.g);
    }
}