导航菜单

页面标题

页面副标题

95爱播免登录版 v3.1.9 - RechargePayActivity.java 源代码

正在查看: 95爱播免登录版 v3.1.9 应用的 RechargePayActivity.java JAVA 源代码文件

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


package com.showself.ui;

import android.content.Context;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.ListAdapter;
import android.widget.ListView;
import android.widget.TextView;
import com.mifeng.ui.R;
import com.showself.domain.RechargeValue;
import com.showself.service.g;
import com.showself.utils.Utils;
import java.util.HashMap;
import java.util.List;

public class RechargePayActivity extends c {
    private String a;
    private int b;
    private int c;
    private int d;

    private List<RechargeValue> f2817e;

    private com.r.b.d f2818f;

    private ListView f2819g;

    View.OnClickListener f2820h = new a();

    class a implements View.OnClickListener {
        a() {
        }

        @Override
        public void onClick(View view) {
            int id = view.getId();
            if (id == 2131296486) {
                RechargePayActivity.this.finish();
                return;
            }
            if (id != 2131299245) {
                return;
            }
            RechargeValue rechargeValue = (RechargeValue) view.getTag();
            RechargePayActivity.this.d = rechargeValue.getProduct_id();
            Intent intent = new Intent((Context) RechargePayActivity.this, (Class<?>) RechargeActivity.class);
            intent.putExtra("title", RechargePayActivity.this.getString(R.string.telecom_card));
            intent.putExtra("type", RechargePayActivity.this.b);
            intent.putExtra("nohint", RechargePayActivity.this.getString(R.string.unicom_card_hint1));
            intent.putExtra("pwhint", RechargePayActivity.this.getString(R.string.unicom_card_hint2));
            intent.putExtra("category", 1);
            intent.putExtra("value", rechargeValue.getMoney());
            intent.putExtra("product_id", RechargePayActivity.this.d);
            RechargePayActivity.this.startActivity(intent);
        }
    }

    private void C() {
        HashMap hashMap = new HashMap();
        hashMap.put("type", Integer.valueOf(this.b));
        hashMap.put("category", Integer.valueOf(this.c));
        addTask(new com.showself.service.f(10075, hashMap), this);
    }

    @Override
    public void init() {
        TextView textView = (TextView) findViewById(R.id.tv_nav_title);
        Button button = (Button) findViewById(R.id.btn_nav_left);
        this.f2819g = (ListView) findViewById(R.id.lv_live_address_content);
        textView.setText(this.a);
        button.setOnClickListener(this.f2820h);
        com.r.b.d dVar = new com.r.b.d(this, this.f2820h);
        this.f2818f = dVar;
        this.f2819g.setAdapter((ListAdapter) dVar);
    }

    @Override
    protected void onCreate(Bundle bundle) {
        super.onCreate(bundle);
        setContentView(R.layout.recharge_list);
        this.a = getIntent().getStringExtra("title");
        this.b = getIntent().getIntExtra("type", 103);
        getIntent().getStringExtra("nohint");
        getIntent().getStringExtra("pwhint");
        this.c = getIntent().getIntExtra("category", 1);
        getIntent().getIntExtra("vip_productid", 0);
        getIntent().getStringExtra("prompt");
        getIntent().getIntExtra("realvalue", 0);
        init();
        C();
    }

    @Override
    protected void onDestroy() {
        super.onDestroy();
    }

    @Override
    protected void onResume() {
        super.onResume();
    }

    @Override
    protected void onStop() {
        super.onStop();
    }

    @Override
    public void refresh(Object... objArr) {
        Utils.n(this);
        int intValue = ((Integer) objArr[0]).intValue();
        HashMap hashMap = (HashMap) objArr[1];
        if (hashMap != null) {
            int intValue2 = ((Integer) hashMap.get(com.showself.net.e.n1)).intValue();
            String str = (String) hashMap.get(com.showself.net.e.o1);
            if (intValue == 10075) {
                if (intValue2 == com.showself.net.e.m1) {
                    List<RechargeValue> list = (List) hashMap.get("recharge_list");
                    this.f2817e = list;
                    if (list != null && list.size() > 0) {
                        this.f2818f.a(this.f2817e);
                    }
                } else {
                    Utils.Z0(this, str);
                }
            }
        }
        g.i(this);
    }
}