底部点击回到顶部(首页-游戏),闪退重启出现提示框

This commit is contained in:
kehaoyuan
2017-08-15 11:30:04 +08:00
parent 0dc867ce64
commit bd74d3a1a3
11 changed files with 53 additions and 16 deletions

View File

@ -61,6 +61,7 @@ public class AppUncaughtHandler implements UncaughtExceptionHandler {
sp.edit().putLong("last_restart_time", System.currentTimeMillis()).apply();
Intent intent = new Intent(mContext, SplashScreenActivity.class);
intent.setAction(Intent.ACTION_MAIN);
intent.putExtra("exceptionReStart", true);
intent.addCategory(Intent.CATEGORY_LAUNCHER);
PendingIntent restartIntent = PendingIntent.getActivity(mContext, 0, intent,
PendingIntent.FLAG_UPDATE_CURRENT);