Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

一点小问题 #162

Closed
wuyingtong opened this issue Nov 2, 2017 · 1 comment
Closed

一点小问题 #162

wuyingtong opened this issue Nov 2, 2017 · 1 comment

Comments

@wuyingtong
Copy link

Look at here

  • → Did you conform to the Rules?
  • → Did you read the Wiki Carefully?
  • → Did you search in Google?
  • → Did you search in openned&closed Issues?
  • Receive only bugs and suggestions

MVPArms Version:

AndroidStudio Version:

Target Android Version:

Bug Description:

/**
* 退出应用程序
*/
public void appExit() {
try {
killAll();
release();// 释放资源
ActivityManager activityMgr =//mApplication is null
(ActivityManager) mApplication.getSystemService(Context.ACTIVITY_SERVICE);
activityMgr.killBackgroundProcesses(mApplication.getPackageName());
System.exit(0);
} catch (Exception e) {
e.printStackTrace();
}
}

/**
* 释放资源
*/
public void release() {
EventBus.getDefault().unregister(this);
mActivityList.clear();
mHandleListener = null;
mActivityList = null;
mCurrentActivity = null;
mApplication = null;
}

Related Code:

  

Bug Log:



Others

@JessYanCoding
Copy link
Owner

这个方法里的代码早就修改了, 下个版本发布

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants