修复部分bug

This commit is contained in:
huangzhuanghua
2016-09-29 18:32:55 +08:00
parent e5e6a07e24
commit 47914f94ac
67 changed files with 450 additions and 813 deletions

View File

@ -61,7 +61,7 @@ public class AppUncaHandler implements UncaughtExceptionHandler {
intent.addCategory(Intent.CATEGORY_LAUNCHER);
PendingIntent restartIntent = PendingIntent.getActivity(
appController.getApplicationContext(), 0, intent,
Intent.FLAG_ACTIVITY_NEW_TASK);
PendingIntent.FLAG_UPDATE_CURRENT);
// 退出程序并重启
AlarmManager mgr = (AlarmManager) appController
.getSystemService(Context.ALARM_SERVICE);
@ -88,8 +88,7 @@ public class AppUncaHandler implements UncaughtExceptionHandler {
SimpleDateFormat format = new SimpleDateFormat("yyyy-MM-dd-HH-mm-ss",
Locale.getDefault());
File file = new File(FileUtils.getLogPath(
appController.getApplicationContext(),
File file = new File(FileUtils.getLogPath(appController.getApplicationContext(),
format.format(new Date()) + "_gh_assist" + ".log"));
FileWriter writer = null;
try {