Fixed: Do not stop the app if UncaughtExceptionHandler implemented by CrashHandler receives an exception on a non main thread

Rename function that should be used by main thread of apps to `setDefaultCrashHandler()`.

Functions for other threads will be added in a later commit.
This commit is contained in:
agnostic-apollo
2022-04-17 05:54:45 +05:00
parent 5116d886c3
commit 6b60adc079
3 changed files with 27 additions and 17 deletions

View File

@@ -20,7 +20,7 @@ public class TermuxApplication extends Application {
Context context = getApplicationContext();
// Set crash handler for the app
TermuxCrashUtils.setCrashHandler(this);
TermuxCrashUtils.setDefaultCrashHandler(this);
// Set log config for the app
setLogConfig(context);