修复部分bug
This commit is contained in:
@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user