和通讯录 v3.9.6版本的 MD5 值为:669178e2ee1b2311daf378bd20c6bbe1

以下内容为反编译后的 SearchResultActivity.java 源代码,内容仅作参考


package com.aspire.yellowpage.main;

import android.annotation.SuppressLint;
import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.os.Handler;
import android.text.TextUtils;
import android.view.View;
import android.view.animation.Animation;
import android.view.animation.AnimationUtils;
import android.view.animation.LinearInterpolator;
import android.widget.AdapterView;
import android.widget.EditText;
import android.widget.ImageView;
import android.widget.LinearLayout;
import android.widget.RelativeLayout;
import android.widget.TextView;
import com.aspire.yellowpage.view.LoadMoreListView;
import java.util.ArrayList;

@SuppressLint({"NewApi"})
public class SearchResultActivity extends Activity implements View.OnClickListener, com.aspire.yellowpage.view.ai {

    private LoadMoreListView f800a;

    private EditText f801b;
    private RelativeLayout c;
    private RelativeLayout d;
    private ImageView e;
    private LinearLayout f;
    private TextView g;
    private RelativeLayout h;
    private String i;
    private Animation j;
    private com.aspire.yellowpage.f.b k;
    private String l;
    private ArrayList<com.aspire.yellowpage.e.e> o;
    private String p;
    private com.aspire.yellowpage.a.o q;
    private com.aspire.yellowpage.c.a s;
    private String u;
    private ArrayList<com.aspire.yellowpage.e.e> m = new ArrayList<>();
    private ArrayList<com.aspire.yellowpage.e.e> n = new ArrayList<>();
    private int r = 0;
    private boolean t = false;
    private String v = "http://pim.10086.cn/wap/plugs/yellow.php?type=changyong&pageId=";
    private int w = 0;
    private int x = 1;
    private boolean y = false;
    private Handler z = new cy(this);
    private AdapterView.OnItemClickListener A = new cz(this);

    @Override
    protected void onCreate(Bundle bundle) {
        super.onCreate(bundle);
        setContentView(cn.asp_yp_search_result_layout);
        b();
        c();
        com.aspire.yellowpage.i.a.a("searchpage", null, this.u, "");
    }

    private void b() {
        this.s = com.aspire.yellowpage.c.a.a(this);
        Intent intent = getIntent();
        this.l = intent.getExtras().getString("content");
        this.p = intent.getExtras().getString("city");
        this.u = intent.getExtras().getString("lastPage");
        this.k = new com.aspire.yellowpage.f.b();
    }

    private void c() {
        this.f = (LinearLayout) findViewById(cm.layout_back);
        this.f.setOnClickListener(this);
        this.g = (TextView) findViewById(cm.tv_search_content);
        this.g.setText(this.l);
        this.h = (RelativeLayout) findViewById(cm.rl_search_content);
        this.h.setOnClickListener(this);
        this.d = (RelativeLayout) findViewById(cm.rl_repeat_animation_layout);
        this.e = (ImageView) findViewById(cm.iv_load_animation);
        this.j = AnimationUtils.loadAnimation(this, cj.asp_yp_rotate_left);
        this.j.setInterpolator(new LinearInterpolator());
        this.f800a = (LoadMoreListView) findViewById(cm.lv_search_result);
        this.f800a.setOnItemClickListener(this.A);
        this.f800a.setLoadMoreListener(this);
        this.c = (RelativeLayout) findViewById(cm.rl_search_fail_notice);
        d();
    }

    @Override
    public void finish() {
        super.finish();
        overridePendingTransition(cj.asp_yp_activity_finish_in, cj.asp_yp_activity_finish_out);
    }

    @Override
    public void startActivity(Intent intent) {
        super.startActivity(intent);
        overridePendingTransition(cj.asp_yp_activity_start_in, cj.asp_yp_activity_start_out);
    }

    @Override
    public void onClick(View view) {
        if (view.getId() == cm.layout_back) {
            finish();
        }
        if (view.getId() == cm.rl_search_content) {
            finish();
        }
    }

    private void d() {
        com.aspire.yellowpage.i.a.a("searchpage", this.l);
        this.t = true;
        g();
        if (com.aspire.yellowpage.utils.k.b()) {
            this.r = 0;
            e();
        } else {
            this.r = 1;
            f();
        }
    }

    private void e() {
        a.f806a.execute(new da(this));
    }

    public void f() {
        a.f806a.execute(new db(this));
    }

    private void g() {
        if (this.f800a.getVisibility() == 0) {
            this.f800a.setVisibility(4);
        }
        if (this.c.getVisibility() == 0) {
            this.c.setVisibility(4);
        }
        if (this.d.getVisibility() == 4 || this.d.getVisibility() == 8) {
            this.d.setVisibility(0);
        }
        this.e.startAnimation(this.j);
    }

    public void h() {
        this.j.cancel();
        if (this.f800a.getVisibility() == 4 || this.f800a.getVisibility() == 8) {
            this.f800a.setVisibility(0);
        }
        if (this.c.getVisibility() == 0) {
            this.c.setVisibility(8);
        }
        if (this.d.getVisibility() == 0) {
            this.d.setVisibility(8);
        }
    }

    public void i() {
        this.j.cancel();
        if (this.f800a.getVisibility() == 0) {
            this.f800a.setVisibility(8);
        }
        if (this.c.getVisibility() == 4 || this.c.getVisibility() == 8) {
            this.c.setVisibility(0);
        }
        if (this.d.getVisibility() == 0) {
            this.d.setVisibility(8);
        }
    }

    @Override
    public void a() {
        if (!TextUtils.isEmpty(this.l) && com.aspire.yellowpage.utils.k.b() && this.y) {
            a.f806a.execute(new dc(this));
        } else {
            this.f800a.b();
        }
    }
}