360手机助手 v3.3.0版本的 MD5 值为:127c345ad16bbebee6e347381328afd0

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


package com.qihoo.appstore.book;

import android.content.Intent;
import android.os.Bundle;
import android.os.Handler;
import com.qihoo.appstore.activities.DlgforebookShortcut;
import com.qihoo.appstore.activities.TabbedActivity;
import com.qihoo.appstore.activities.iq;
import com.qihoo.appstore.activities.is;
import com.qihoo.appstore.newsearch.bf;
import com.qihoo.appstore.ui.cu;
import com.qihoo.appstore.ui.cv;
import com.qihoo.freewifi.push.R;
import com.qihoo.speedometer.Config;

public class BookActivity extends TabbedActivity implements cv {

    static boolean f1348b = false;

    public k f1349a = null;

    private int e() {
        String stringExtra;
        Intent intent = getIntent();
        if (intent == null || (stringExtra = intent.getStringExtra("switchTab")) == null || stringExtra.equals(Config.INVALID_IP) || stringExtra.equalsIgnoreCase("recommend")) {
            return 0;
        }
        if (stringExtra.equalsIgnoreCase("rank")) {
            return 1;
        }
        if (stringExtra.equalsIgnoreCase("cat")) {
            return 2;
        }
        return stringExtra.equalsIgnoreCase("book") ? 3 : 0;
    }

    private boolean f() {
        return com.qihoo.appstore.utils.f.n();
    }

    private boolean g() {
        return com.qihoo.appstore.utils.f.o();
    }

    public void h() {
        DlgforebookShortcut.a(this);
    }

    private void i() {
        com.qihoo.appstore.utils.f.n();
        com.qihoo.appstore.utils.f.o();
        if (f1348b) {
            return;
        }
        f1348b = true;
        com.qihoo.appstore.d.e.a(this, R.drawable.dialog_icon_info, getResources().getString(R.string.Infotip), getResources().getString(R.string.dialog_for_ebook_shortcut_text_book), new String[]{getResources().getString(R.string.dialog_for_ebook_shortcut_button_ok), getResources().getString(R.string.dialog_for_ebook_shortcut_button_cannel)}, new int[]{R.drawable.btn_dialog_pos, R.drawable.btn_dialog_neg}, new int[]{R.color.new_ui_color_blue_style, R.color.black}, new b(this), null, getResources().getString(R.string.donot_show_next_time), false, new c(this), null, null, true);
    }

    @Override
    public void a(cu cuVar) {
        if (cuVar == a().a(3)) {
            if (com.qihoo.appstore.utils.f.c("is_add_new_book", false) && !f() && !g()) {
                i();
            }
            com.qihoo.appstore.utils.f.b("is_add_new_book", false);
        }
    }

    @Override
    public void onCreate(Bundle bundle) {
        super.onCreate(bundle);
        is isVar = new is();
        isVar.f1039a = new iq[4];
        isVar.f1039a[0] = new ae(this, "http://ebook.openbox.mobilem.360.cn/page.do?id=1", "eb001");
        isVar.f1039a[1] = new ae(this, "http://ebook.openbox.mobilem.360.cn/rank/list1.do", "eb002");
        isVar.f1039a[2] = new ae(this, "http://ebook.openbox.mobilem.360.cn/type/list1.do", "eb003");
        this.f1349a = new k(this, "eb004");
        isVar.f1039a[3] = this.f1349a;
        isVar.f1040b = new String[4];
        isVar.f1040b[0] = getString(R.string.recommand);
        isVar.f1040b[1] = getString(R.string.rank);
        isVar.f1040b[2] = getString(R.string.classify);
        isVar.f1040b[3] = getString(R.string.bookself);
        isVar.c = 0;
        Intent intent = getIntent();
        if (intent != null) {
            isVar.c = intent.getIntExtra("index", 0);
        }
        if (isVar.c == 0) {
            isVar.c = e();
        }
        isVar.d = getString(R.string.e_book);
        isVar.f = true;
        isVar.g = false;
        isVar.m = true;
        isVar.h = true;
        if (bf.f() == 1) {
            isVar.h = false;
        }
        a(isVar);
        cu a2 = a().a(3);
        a2.a(this);
        this.f1349a.a(a2);
        a2.a("ebookupdate");
    }

    @Override
    public void onResume() {
        a().a(3);
        new Handler().postDelayed(new a(this), 200L);
        super.onResume();
    }
}