@Override protected void onDestroy() { // 清除网络请求队列 AsyncHttpNetCenter.getInstance().clearRequestQueue(this); // OkHttpNetCenter.getInstance().clearRequestQueue(this); // 将该Activity从堆栈移除 AppManager.getAppManager().removeActivity(this); super.onDestroy(); }
@Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); // 隐藏标题栏 requestWindowFeature(Window.FEATURE_NO_TITLE); initContentView(); // 将该Activity加入堆栈 AppManager.getAppManager().addActivity(this); // 初始化View注入 ButterKnife.bind(this); initPresenter(); initView(); }