导航菜单

页面标题

页面副标题

自健身 v3.3.4 - BillingDetailsActivity.java 源代码

正在查看: 自健身 v3.3.4 应用的 BillingDetailsActivity.java JAVA 源代码文件

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


package com.mu.gymtrain.Activity;

import android.view.ViewGroup;
import android.widget.LinearLayout;
import androidx.activity.ComponentActivity;
import androidx.lifecycle.ViewModelLazy;
import androidx.lifecycle.ViewModelProvider;
import androidx.lifecycle.ViewModelStore;
import com.mu.gymtrain.Base.BaseActivityKT;
import com.mu.gymtrain.Bean.AroundGymBean;
import com.mu.gymtrain.R;
import com.mu.gymtrain.viewmodel.BillingDetailsVM;
import java.util.List;
import kotlin.Lazy;
import kotlin.Metadata;
import kotlin.Unit;
import kotlin.jvm.functions.Function0;
import kotlin.jvm.functions.Function1;
import kotlin.jvm.internal.Intrinsics;
import kotlin.jvm.internal.Reflection;

@Metadata(d1 = {"\u0000\"\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0002\b\u0005\n\u0002\u0010\b\n\u0000\n\u0002\u0010\u0002\n\u0002\b\u0002\u0018\u00002\u00020\u0001B\u0005¢\u0006\u0002\u0010\u0002J\b\u0010\t\u001a\u00020\nH\u0016J\b\u0010\u000b\u001a\u00020\fH\u0016J\b\u0010\r\u001a\u00020\fH\u0002R\u001b\u0010\u0003\u001a\u00020\u00048BX\u0082\u0084\u0002¢\u0006\f\n\u0004\b\u0007\u0010\b\u001a\u0004\b\u0005\u0010\u0006¨\u0006\u000e"}, d2 = {"Lcom/mu/gymtrain/Activity/BillingDetailsActivity;", "Lcom/mu/gymtrain/Base/BaseActivityKT;", "()V", "VM", "Lcom/mu/gymtrain/viewmodel/BillingDetailsVM;", "getVM", "()Lcom/mu/gymtrain/viewmodel/BillingDetailsVM;", "VM$delegate", "Lkotlin/Lazy;", "getLayoutRes", "", "init", "", "initData", "app_release"}, k = 1, mv = {1, 5, 1}, xi = 48)
public final class BillingDetailsActivity extends BaseActivityKT {

    private final Lazy VM;

    @Override
    public void _$_clearFindViewByIdCache() {
    }

    @Override
    public int getLayoutRes() {
        return R.layout.billing_details_layout;
    }

    public BillingDetailsActivity() {
        final ComponentActivity componentActivity = (ComponentActivity) this;
        this.VM = new ViewModelLazy(Reflection.getOrCreateKotlinClass(BillingDetailsVM.class), new Function0<ViewModelStore>() {
            {
                super(0);
            }

            public final ViewModelStore m47invoke() {
                ViewModelStore viewModelStore = componentActivity.getViewModelStore();
                Intrinsics.checkNotNullExpressionValue(viewModelStore, "viewModelStore");
                return viewModelStore;
            }
        }, new Function0<ViewModelProvider.Factory>() {
            {
                super(0);
            }

            public final ViewModelProvider.Factory m46invoke() {
                return componentActivity.getDefaultViewModelProviderFactory();
            }
        });
    }

    private final BillingDetailsVM getVM() {
        return (BillingDetailsVM) this.VM.getValue();
    }

    @Override
    public void init() {
        initData();
    }

    private final void initData() {
        showProgress();
        ((LinearLayout) findViewById(R.id.rootView)).addView(getLayoutInflater().inflate(R.layout.billing_details_charge_layout, (ViewGroup) null, false));
        getVM().getGYM(new Function1<List<? extends AroundGymBean>, Unit>() {
            {
                super(1);
            }

            public Object invoke(Object obj) {
                invoke((List<? extends AroundGymBean>) obj);
                return Unit.INSTANCE;
            }

            public final void invoke(List<? extends AroundGymBean> list) {
                BillingDetailsActivity.this.dismissProgress();
            }
        });
    }
}