导航菜单

页面标题

页面副标题

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

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

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


package com.showself.ui;

import android.content.Intent;
import android.os.Bundle;
import android.os.Handler;
import android.os.Message;
import android.view.View;
import android.widget.AdapterView;
import android.widget.Button;
import android.widget.ListAdapter;
import android.widget.ListView;
import android.widget.TextView;
import com.mifeng.ui.R;
import com.r.b.g1;
import com.showself.domain.CityInfo;
import com.showself.domain.ProvinceInfo;
import com.showself.domain.ZoneInfo;
import com.showself.utils.Utils;
import com.showself.utils.j0;
import com.showself.utils.p0;
import com.xiaomi.mipush.sdk.Constants;
import com.zego.zegoavkit2.ZegoConstants;
import java.util.ArrayList;
import java.util.List;
import org.apache.commons.httpclient.cookie.CookieSpec;

public class ProfileSelectActivity extends com.showself.ui.c {
    private Button a;
    private TextView b;
    private ListView c;

    private g1 f2799h;
    private List<String> d = new ArrayList();

    private List<ProvinceInfo> f2796e = new ArrayList();

    private List<CityInfo> f2797f = new ArrayList();

    private List<ZoneInfo> f2798g = new ArrayList();

    private String f2800i = "";

    private String f2801j = "";

    private String f2802k = "";
    private String l = "";
    private int m = 0;
    private int n = 0;
    private int o = 0;
    private Handler p = new a();

    class a extends Handler {
        a() {
        }

        @Override
        public void handleMessage(Message message) {
            int i2 = message.what;
            if (i2 == 1) {
                ?? r0 = ProfileSelectActivity.this;
                ((ProfileSelectActivity) r0).f2800i = r0.getString(R.string.yaowei);
                ProfileSelectActivity.this.f2801j = (String) message.obj;
                ProfileSelectActivity.this.b.setText(ProfileSelectActivity.this.getString(R.string.xiongwei) + "(" + ProfileSelectActivity.this.f2801j + ")" + ProfileSelectActivity.this.getString(R.string.yaowei));
                ProfileSelectActivity.this.d = j0.h();
                ProfileSelectActivity profileSelectActivity = ProfileSelectActivity.this;
                ?? r8 = ProfileSelectActivity.this;
                profileSelectActivity.f2799h = new g1(r8, ((ProfileSelectActivity) r8).d, ProfileSelectActivity.this.f2796e, ProfileSelectActivity.this.f2797f, ProfileSelectActivity.this.f2798g);
                ProfileSelectActivity.this.f2799h.a(1);
                ProfileSelectActivity.this.f2799h.b(0);
                ProfileSelectActivity.this.c.setAdapter((ListAdapter) ProfileSelectActivity.this.f2799h);
                ProfileSelectActivity.this.f2799h.notifyDataSetChanged();
                return;
            }
            if (i2 == 2) {
                ?? r02 = ProfileSelectActivity.this;
                ((ProfileSelectActivity) r02).f2800i = r02.getString(R.string.tunwei);
                ProfileSelectActivity.this.f2802k = (String) message.obj;
                ProfileSelectActivity.this.b.setText(ProfileSelectActivity.this.getString(R.string.xiongwei) + "(" + ProfileSelectActivity.this.f2801j + ")" + ProfileSelectActivity.this.getString(R.string.yaowei) + "(" + ProfileSelectActivity.this.f2802k + ")" + ProfileSelectActivity.this.getString(R.string.tunwei));
                ProfileSelectActivity.this.d = j0.e();
                ProfileSelectActivity profileSelectActivity2 = ProfileSelectActivity.this;
                ?? r82 = ProfileSelectActivity.this;
                profileSelectActivity2.f2799h = new g1(r82, ((ProfileSelectActivity) r82).d, ProfileSelectActivity.this.f2796e, ProfileSelectActivity.this.f2797f, ProfileSelectActivity.this.f2798g);
                ProfileSelectActivity.this.f2799h.a(1);
                ProfileSelectActivity.this.f2799h.b(0);
                ProfileSelectActivity.this.c.setAdapter((ListAdapter) ProfileSelectActivity.this.f2799h);
                ProfileSelectActivity.this.f2799h.notifyDataSetChanged();
                return;
            }
            if (i2 == 3) {
                ?? r03 = ProfileSelectActivity.this;
                ((ProfileSelectActivity) r03).f2800i = r03.getString(R.string.zhaobei);
                ProfileSelectActivity.this.l = (String) message.obj;
                ProfileSelectActivity.this.b.setTextSize(12.0f);
                ProfileSelectActivity.this.b.setText(ProfileSelectActivity.this.getString(R.string.xiongwei) + "(" + ProfileSelectActivity.this.f2801j + ")" + ProfileSelectActivity.this.getString(R.string.yaowei) + "(" + ProfileSelectActivity.this.f2802k + ")" + ProfileSelectActivity.this.getString(R.string.tunwei) + "(" + ProfileSelectActivity.this.l + ")" + ProfileSelectActivity.this.getString(R.string.zhaobei));
                ProfileSelectActivity.this.d = j0.i();
                ProfileSelectActivity profileSelectActivity3 = ProfileSelectActivity.this;
                ?? r1 = ProfileSelectActivity.this;
                profileSelectActivity3.f2799h = new g1(r1, ((ProfileSelectActivity) r1).d, ProfileSelectActivity.this.f2796e, ProfileSelectActivity.this.f2797f, ProfileSelectActivity.this.f2798g);
                ProfileSelectActivity.this.f2799h.a(1);
                ProfileSelectActivity.this.f2799h.b(1);
                ProfileSelectActivity.this.c.setAdapter((ListAdapter) ProfileSelectActivity.this.f2799h);
                ProfileSelectActivity.this.f2799h.notifyDataSetChanged();
                return;
            }
            if (i2 == 4) {
                ?? r04 = ProfileSelectActivity.this;
                ((ProfileSelectActivity) r04).f2800i = r04.getString(R.string.shengjishi);
                ProfileSelectActivity.this.b.setText(ProfileSelectActivity.this.f2800i);
                ProvinceInfo provinceInfo = (ProvinceInfo) message.obj;
                ProfileSelectActivity.this.m = provinceInfo.getProSort();
                ProfileSelectActivity.this.f2801j = provinceInfo.getProName();
                ProfileSelectActivity.this.f2797f = com.showself.provider.d.a(provinceInfo.getProSort());
                ProfileSelectActivity profileSelectActivity4 = ProfileSelectActivity.this;
                ?? r9 = ProfileSelectActivity.this;
                profileSelectActivity4.f2799h = new g1(r9, ((ProfileSelectActivity) r9).d, ProfileSelectActivity.this.f2796e, ProfileSelectActivity.this.f2797f, ProfileSelectActivity.this.f2798g);
                ProfileSelectActivity.this.f2799h.a(3);
                ProfileSelectActivity.this.f2799h.b(0);
                ProfileSelectActivity.this.c.setAdapter((ListAdapter) ProfileSelectActivity.this.f2799h);
                ProfileSelectActivity.this.f2799h.notifyDataSetChanged();
                return;
            }
            if (i2 != 5) {
                return;
            }
            ?? r05 = ProfileSelectActivity.this;
            ((ProfileSelectActivity) r05).f2800i = r05.getString(R.string.xianqu);
            ProfileSelectActivity.this.b.setText(ProfileSelectActivity.this.f2800i);
            CityInfo cityInfo = (CityInfo) message.obj;
            ProfileSelectActivity.this.n = cityInfo.getCitySort();
            ProfileSelectActivity.this.f2802k = cityInfo.getCityName();
            ProfileSelectActivity.this.f2798g = com.showself.provider.d.f(cityInfo.getCitySort());
            ProfileSelectActivity profileSelectActivity5 = ProfileSelectActivity.this;
            ?? r83 = ProfileSelectActivity.this;
            profileSelectActivity5.f2799h = new g1(r83, ((ProfileSelectActivity) r83).d, ProfileSelectActivity.this.f2796e, ProfileSelectActivity.this.f2797f, ProfileSelectActivity.this.f2798g);
            ProfileSelectActivity.this.f2799h.a(4);
            ProfileSelectActivity.this.f2799h.b(1);
            ProfileSelectActivity.this.c.setAdapter((ListAdapter) ProfileSelectActivity.this.f2799h);
            ProfileSelectActivity.this.f2799h.notifyDataSetChanged();
        }
    }

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

        @Override
        public void onClick(View view) {
            ProfileSelectActivity.this.finish();
        }
    }

    class c implements AdapterView.OnItemClickListener {
        c() {
        }

        @Override
        public void onItemClick(AdapterView<?> adapterView, View view, int i2, long j2) {
            if (ProfileSelectActivity.this.f2800i.equals(ProfileSelectActivity.this.getString(R.string.marry_status)) || ProfileSelectActivity.this.f2800i.equals(ProfileSelectActivity.this.getString(R.string.stature)) || ProfileSelectActivity.this.f2800i.equals(ProfileSelectActivity.this.getString(R.string.weight)) || ProfileSelectActivity.this.f2800i.equals(ProfileSelectActivity.this.getString(R.string.blood)) || ProfileSelectActivity.this.f2800i.equals(ProfileSelectActivity.this.getString(R.string.monthly_pay))) {
                Intent intent = new Intent();
                intent.setClass(ProfileSelectActivity.this, ProfileActivity.class);
                Bundle bundle = new Bundle();
                bundle.putString("context", (String) ProfileSelectActivity.this.d.get(i2));
                intent.putExtras(bundle);
                ProfileSelectActivity.this.setResult(-1, intent);
                ProfileSelectActivity.this.finish();
            }
            if (ProfileSelectActivity.this.f2800i.equals(ProfileSelectActivity.this.getString(R.string.xiongwei))) {
                Message message = new Message();
                message.what = 1;
                message.obj = ProfileSelectActivity.this.d.get(i2);
                ProfileSelectActivity.this.p.sendMessage(message);
            }
            if (ProfileSelectActivity.this.f2800i.equals(ProfileSelectActivity.this.getString(R.string.yaowei))) {
                Message message2 = new Message();
                message2.what = 2;
                message2.obj = ProfileSelectActivity.this.d.get(i2);
                ProfileSelectActivity.this.p.sendMessage(message2);
            }
            if (ProfileSelectActivity.this.f2800i.equals(ProfileSelectActivity.this.getString(R.string.tunwei))) {
                Message message3 = new Message();
                message3.what = 3;
                message3.obj = ProfileSelectActivity.this.d.get(i2);
                ProfileSelectActivity.this.p.sendMessage(message3);
            }
            if (ProfileSelectActivity.this.f2800i.equals(ProfileSelectActivity.this.getString(R.string.zhaobei))) {
                Intent intent2 = new Intent();
                intent2.setClass(ProfileSelectActivity.this, ProfileActivity.class);
                Bundle bundle2 = new Bundle();
                bundle2.putString("context", ProfileSelectActivity.this.f2801j + CookieSpec.PATH_DELIM + ProfileSelectActivity.this.f2802k + CookieSpec.PATH_DELIM + ProfileSelectActivity.this.l + CookieSpec.PATH_DELIM + ((String) ProfileSelectActivity.this.d.get(i2)) + " cup");
                intent2.putExtras(bundle2);
                ProfileSelectActivity.this.setResult(-1, intent2);
                ProfileSelectActivity.this.finish();
            }
            if (ProfileSelectActivity.this.f2800i.equals(ProfileSelectActivity.this.getString(R.string.shengzhixiashi))) {
                Message message4 = new Message();
                message4.what = 4;
                message4.obj = ProfileSelectActivity.this.f2796e.get(i2);
                ProfileSelectActivity.this.p.sendMessage(message4);
            }
            if (ProfileSelectActivity.this.f2800i.equals(ProfileSelectActivity.this.getString(R.string.shengjishi))) {
                ProfileSelectActivity profileSelectActivity = ProfileSelectActivity.this;
                profileSelectActivity.n = ((CityInfo) profileSelectActivity.f2797f.get(i2)).getCitySort();
                if (com.showself.provider.d.f(((CityInfo) ProfileSelectActivity.this.f2797f.get(i2)).getCitySort()).size() > 0) {
                    Message message5 = new Message();
                    message5.what = 5;
                    message5.obj = ProfileSelectActivity.this.f2797f.get(i2);
                    ProfileSelectActivity.this.p.sendMessage(message5);
                } else {
                    Intent intent3 = new Intent();
                    intent3.setClass(ProfileSelectActivity.this, ProfileActivity.class);
                    Bundle bundle3 = new Bundle();
                    bundle3.putString("context", ProfileSelectActivity.this.f2801j + Constants.ACCEPT_TIME_SEPARATOR_SP + ((CityInfo) ProfileSelectActivity.this.f2797f.get(i2)).getCityName());
                    bundle3.putInt("pid", ProfileSelectActivity.this.m);
                    bundle3.putInt("cid", ProfileSelectActivity.this.n);
                    bundle3.putInt("zid", ProfileSelectActivity.this.o);
                    intent3.putExtras(bundle3);
                    ProfileSelectActivity.this.setResult(-1, intent3);
                    ProfileSelectActivity.this.finish();
                }
            }
            if (ProfileSelectActivity.this.f2800i.equals(ProfileSelectActivity.this.getString(R.string.xianqu))) {
                ProfileSelectActivity profileSelectActivity2 = ProfileSelectActivity.this;
                profileSelectActivity2.o = ((ZoneInfo) profileSelectActivity2.f2798g.get(i2)).getZoneID();
                Intent intent4 = new Intent();
                intent4.setClass(ProfileSelectActivity.this, ProfileActivity.class);
                Bundle bundle4 = new Bundle();
                bundle4.putString("context", ProfileSelectActivity.this.f2801j + ZegoConstants.ZegoVideoDataAuxPublishingStream + ProfileSelectActivity.this.f2802k + ZegoConstants.ZegoVideoDataAuxPublishingStream + ((ZoneInfo) ProfileSelectActivity.this.f2798g.get(i2)).getZoneName());
                bundle4.putInt("pid", ProfileSelectActivity.this.m);
                bundle4.putInt("cid", ProfileSelectActivity.this.n);
                bundle4.putInt("zid", ProfileSelectActivity.this.o);
                Utils.R0("pid = " + ProfileSelectActivity.this.m + "cid = " + ProfileSelectActivity.this.n + "zid = " + ProfileSelectActivity.this.o);
                intent4.putExtras(bundle4);
                ProfileSelectActivity.this.setResult(-1, intent4);
                ProfileSelectActivity.this.finish();
            }
        }
    }

    @Override
    public void init() {
    }

    @Override
    protected void onCreate(Bundle bundle) {
        super.onCreate(bundle);
        setContentView(R.layout.profile_select_tab);
        Button button = (Button) findViewById(R.id.btn_nav_left);
        this.a = button;
        button.setOnClickListener(new b());
        this.b = (TextView) findViewById(R.id.tv_nav_title);
        String string = getIntent().getExtras().getString("title");
        this.f2800i = string;
        this.b.setText(string);
        if (this.f2800i.equals(getString(R.string.marry_status))) {
            this.d = j0.c();
        }
        if (this.f2800i.equals(getString(R.string.stature))) {
            this.d = j0.b();
        }
        if (this.f2800i.equals(getString(R.string.weight))) {
            this.d = j0.f();
        }
        if (this.f2800i.equals(getString(R.string.blood))) {
            this.d = j0.a();
        }
        if (this.f2800i.equals(getString(R.string.monthly_pay))) {
            this.d = j0.d();
        }
        if (this.f2800i.equals(getString(R.string.xiongwei))) {
            this.d = j0.g();
        }
        if (this.f2800i.equals(getString(R.string.shengzhixiashi))) {
            this.f2796e = com.showself.provider.d.e();
        }
        this.c = (ListView) findViewById(R.id.lv_profile_selsect);
        g1 g1Var = new g1(this, this.d, this.f2796e, this.f2797f, this.f2798g);
        this.f2799h = g1Var;
        this.c.setAdapter((ListAdapter) g1Var);
        if (this.f2800i.equals(getString(R.string.marry_status)) || this.f2800i.equals(getString(R.string.stature)) || this.f2800i.equals(getString(R.string.weight)) || this.f2800i.equals(getString(R.string.blood)) || this.f2800i.equals(getString(R.string.monthly_pay))) {
            this.f2799h.a(1);
            this.f2799h.b(1);
        }
        if (this.f2800i.equals(getString(R.string.xiongwei))) {
            this.f2799h.a(1);
            this.f2799h.b(0);
        }
        if (this.f2800i.equals(getString(R.string.shengzhixiashi))) {
            this.f2799h.a(2);
            this.f2799h.b(0);
        }
        this.f2799h.notifyDataSetChanged();
        this.c.setOnItemClickListener(new c());
    }

    @Override
    protected void onDestroy() {
        super.onDestroy();
        p0.a(this.f2797f);
        p0.a(this.d);
        p0.a(this.f2796e);
        p0.a(this.f2798g);
    }

    @Override
    public void refresh(Object... objArr) {
    }
}