导航菜单

页面标题

页面副标题

多多分期 v4.1.2 - BMAG01ACT.java 源代码

正在查看: 多多分期 v4.1.2 应用的 BMAG01ACT.java JAVA 源代码文件

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


package com.duoduofenqi.mjyp;

import android.content.IntentFilter;
import android.os.Bundle;
import android.view.KeyEvent;
import android.widget.FrameLayout;
import android.widget.RelativeLayout;
import android.widget.TextView;
import b.h.f.b;
import butterknife.BindView;
import com.base.commonlibrary.views.TabStripView;
import com.duoduofenqi.gzd.FZGBReceiver;
import com.duoduofenqi.mjyp.BMAG01ACT;
import com.duoduofenqi.mjyp.app.fragment.HomeFragment;
import com.duoduofenqi.mjyp.app.fragment.MineFragment;
import com.duoduofenqi.mjyp.app.fragment.RefundFragment;
import com.duoduofenqi.ui.activitys.S0ACT;
import com.duoduofenqi.ui.bean.MessageEvent;
import d.b.a.g;
import d.b.a.l;
import d.b.a.r.j;
import d.i.b.d.b.e;
import l.a.a.c;
import org.greenrobot.eventbus.ThreadMode;

public class BMAG01ACT extends e {
    public long G;
    public FZGBReceiver H;

    @BindView(2131296360)
    public RelativeLayout activityMain;

    @BindView(2131297952)
    public TextView line;

    @BindView(2131298055)
    public FrameLayout mainContainer;

    @BindView(2131298237)
    public TabStripView navigateTabBar;

    public class a implements d.b.a.p.a {
        public a(BMAG01ACT bmag01act) {
        }

        @Override
        public void a() {
            j.e("latitude", "中国");
            j.e("longitude", "中国");
            j.e("address", "中国");
        }

        @Override
        public void b() {
        }
    }

    @Override
    public boolean I() {
        return false;
    }

    @Override
    public int M() {
        return 2131492910;
    }

    @Override
    public void O() {
        k0();
    }

    @Override
    public void P(Bundle bundle) {
        c.c().o(this);
        this.navigateTabBar.setFrameLayoutId(2131298055);
        this.navigateTabBar.setTabTextColor(b.b(this, g.abc_tab_text_normal));
        this.navigateTabBar.setSelectedTabTextColor(b.b(this, g.colorAccent));
        this.navigateTabBar.e(bundle);
        this.navigateTabBar.a(HomeFragment.class, new TabStripView.b(2131558475, 2131558476, getString(l.com_tab_home)));
        this.navigateTabBar.a(RefundFragment.class, new TabStripView.b(2131558477, 2131558478, getString(l.com_tab_refund)));
        this.navigateTabBar.a(MineFragment.class, new TabStripView.b(2131558479, 2131558480, getString(l.tab_mine)));
        this.navigateTabBar.setTabSelectListener(new TabStripView.a() {
            @Override
            public final void a(TabStripView.c cVar) {
                BMAG01ACT.this.l0(cVar);
            }
        });
        n0(new a(this));
    }

    @Override
    public void R() {
    }

    @Override
    public void T() {
    }

    public final void k0() {
        this.H = new FZGBReceiver();
        IntentFilter intentFilter = new IntentFilter();
        intentFilter.addAction("android.intent.action.PACKAGE_ADDED");
        intentFilter.addAction("android.intent.action.PACKAGE_REMOVED");
        intentFilter.addDataScheme("package");
        registerReceiver(this.H, intentFilter);
    }

    public void l0(TabStripView.c cVar) {
        int i2 = cVar.f3713f;
        if (i2 != 1 && i2 != 2) {
            this.navigateTabBar.setCurrentSelectedTab(i2);
        } else if (d.i.b.d.d.a.f6876a.a()) {
            this.navigateTabBar.setCurrentSelectedTab(cVar.f3713f);
        } else {
            d0(S0ACT.class);
        }
    }

    public void m0(int i2) {
        this.navigateTabBar.setCurrentSelectedTab(i2);
    }

    public void n0(d.b.a.p.a aVar) {
        S(getResources().getString(l.need_some_permission), new String[]{"android.permission.WRITE_EXTERNAL_STORAGE", "android.permission.READ_EXTERNAL_STORAGE"}, 100, aVar);
    }

    public void o0(d.b.a.p.a aVar) {
        S(getResources().getString(l.permission_update), new String[]{"android.permission.WRITE_EXTERNAL_STORAGE", "android.permission.READ_EXTERNAL_STORAGE"}, 100, aVar);
    }

    @Override
    public void onDestroy() {
        FZGBReceiver fZGBReceiver = this.H;
        if (fZGBReceiver != null) {
            unregisterReceiver(fZGBReceiver);
        }
        c.c().q(this);
        super.onDestroy();
    }

    @Override
    public boolean onKeyDown(int i2, KeyEvent keyEvent) {
        if (i2 != 4) {
            return super.onKeyDown(i2, keyEvent);
        }
        if (System.currentTimeMillis() - this.G <= 2000) {
            d.b.a.n.c.a.f().a(this, Boolean.TRUE);
            return true;
        }
        c0(getString(l.exit_tip));
        this.G = System.currentTimeMillis();
        return true;
    }

    @l.a.a.l(threadMode = ThreadMode.MAIN)
    public void onMessageEvent(MessageEvent messageEvent) {
        TabStripView tabStripView;
        if (messageEvent.code != "check_to_home" || (tabStripView = this.navigateTabBar) == null) {
            return;
        }
        tabStripView.setCurrentSelectedTab(0);
    }

    @Override
    public void onPause() {
        super.onPause();
    }

    @Override
    public void onRestoreInstanceState(Bundle bundle) {
        super.onRestoreInstanceState(bundle);
    }

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

    @Override
    public void onSaveInstanceState(Bundle bundle) {
        super.onSaveInstanceState(bundle);
        this.navigateTabBar.f(bundle);
    }
}