导航菜单

页面标题

页面副标题

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

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

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


package com.mu.gymtrain.Activity;

import android.view.View;
import android.widget.ImageView;
import android.widget.TextView;
import com.mu.gymtrain.Base.BaseActivityKT;
import com.mu.gymtrain.R;
import kotlin.Metadata;
import kotlin.jvm.internal.Intrinsics;

@Metadata(d1 = {"\u0000&\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0010\b\n\u0002\b\u0002\n\u0002\u0010\u0002\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0000\u0018\u00002\u00020\u00012\u00020\u0002B\u0005¢\u0006\u0002\u0010\u0003J\b\u0010\u0006\u001a\u00020\u0005H\u0016J\b\u0010\u0007\u001a\u00020\bH\u0016J\u0012\u0010\t\u001a\u00020\b2\b\u0010\n\u001a\u0004\u0018\u00010\u000bH\u0016R\u000e\u0010\u0004\u001a\u00020\u0005X\u0082\u000e¢\u0006\u0002\n\u0000¨\u0006\f"}, d2 = {"Lcom/mu/gymtrain/Activity/CustomCouponActivity;", "Lcom/mu/gymtrain/Base/BaseActivityKT;", "Landroid/view/View$OnClickListener;", "()V", "count", "", "getLayoutRes", "init", "", "onClick", "v", "Landroid/view/View;", "app_release"}, k = 1, mv = {1, 5, 1}, xi = 48)
public final class CustomCouponActivity extends BaseActivityKT implements View.OnClickListener {
    private int count = 1;

    @Override
    public void _$_clearFindViewByIdCache() {
    }

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

    @Override
    public void init() {
        ((TextView) findViewById(R.id.title_middle)).setText("生成代金券");
        CustomCouponActivity customCouponActivity = this;
        ((ImageView) findViewById(R.id.title_left)).setOnClickListener(customCouponActivity);
        ((TextView) findViewById(R.id.tvChoose)).setOnClickListener(customCouponActivity);
        ((TextView) findViewById(R.id.tvTips)).setOnClickListener(customCouponActivity);
        ((ImageView) findViewById(R.id.imgWen)).setOnClickListener(customCouponActivity);
        ((ImageView) findViewById(R.id.imgSub)).setOnClickListener(customCouponActivity);
        ((ImageView) findViewById(R.id.imgAdd)).setOnClickListener(customCouponActivity);
        ((TextView) findViewById(R.id.tvSubmit)).setOnClickListener(customCouponActivity);
    }

    @Override
    public void onClick(View v) {
        if (Intrinsics.areEqual(v, (ImageView) findViewById(R.id.title_left))) {
            finish();
            return;
        }
        if (Intrinsics.areEqual(v, (TextView) findViewById(R.id.tvChoose))) {
            return;
        }
        if (Intrinsics.areEqual(v, (ImageView) findViewById(R.id.imgWen))) {
            ((TextView) findViewById(R.id.tvTips)).setVisibility(0);
            return;
        }
        if (Intrinsics.areEqual(v, (TextView) findViewById(R.id.tvTips))) {
            ((TextView) findViewById(R.id.tvTips)).setVisibility(8);
            return;
        }
        if (Intrinsics.areEqual(v, (ImageView) findViewById(R.id.imgSub))) {
            if (this.count == 1) {
                return;
            }
            TextView textView = (TextView) findViewById(R.id.tvCount);
            int i = this.count - 1;
            this.count = i;
            textView.setText(String.valueOf(i));
            return;
        }
        if (Intrinsics.areEqual(v, (ImageView) findViewById(R.id.imgAdd))) {
            if (this.count == 99) {
                return;
            }
            TextView textView2 = (TextView) findViewById(R.id.tvCount);
            int i2 = this.count + 1;
            this.count = i2;
            textView2.setText(String.valueOf(i2));
            return;
        }
        Intrinsics.areEqual(v, (TextView) findViewById(R.id.tvSubmit));
    }
}