What if it crashes when generating crash report

This commit is contained in:
seven332 committed 2015-04-21 14:21:58 +08:00
1 parent 00b7feab69
commit 58b34a4bb2
1 file changed
+8 -3
@@ -162,10 +162,15 @@ public class AppContext extends Application implements UncaughtExceptionHandler
}
private boolean handleException(Throwable ex) {
if (ex == null)
if (ex == null) {
return false;
Crash.saveCrashInfo2File(ex);
return true;
}
try {
Crash.saveCrashInfo2File(ex);
return true;
} catch (Throwable tr) {
return false;
}
}
public Typeface getFaceTypeface() {