What if it crashes when generating crash report
This commit is contained in:
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() {
|
||||
|
||||
Reference in new issue
Block a user