This repository has been archived by the owner on Sep 17, 2023. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Attempt to fix super.NotFound ANR reports...
- Loading branch information
Showing
2 changed files
with
6 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -189,6 +189,7 @@ public void uncaughtException(Thread thread, Throwable ex) { | |
String msgParam = "An unknown error happened in the app. Please upgrade to the latest version if a newer one is available, or "; | ||
msgParam += "contact the developer at [email protected] to report whatever action you took to generate this error!"; | ||
appendNewLog(LogEntryMetadataRecord.createDefaultEventRecord("UNRECOGNIZED EXCEPTION", msgParam)); | ||
System.exit(-1); | ||
} | ||
}; | ||
|
||
|
@@ -201,11 +202,11 @@ public void uncaughtException(Thread thread, Throwable ex) { | |
protected void onCreate(Bundle savedInstanceState) { | ||
|
||
// fix bug where the tabs are blank when the application is relaunched: | ||
super.onCreate(savedInstanceState); // should fix most of the crashes in the ANR report on Play Store | ||
if(!BuildConfig.DEBUG) | ||
Fabric.with(this, new Crashlytics()); | ||
if(runningActivity == null || !isTaskRoot()) { | ||
super.onCreate(savedInstanceState); | ||
Thread.setDefaultUncaughtExceptionHandler(unCaughtExceptionHandler); | ||
if(!BuildConfig.DEBUG) | ||
Fabric.with(this, new Crashlytics()); | ||
} | ||
if(!isTaskRoot()) { | ||
Log.w(TAG, "ReLaunch Intent Action: " + getIntent().getAction()); | ||
|