Bug 1279488 - GeckoAppShell.uncaughtException(): Update state check. r?jchen draft
authorSebastian Kaspari <s.kaspari@gmail.com>
Tue, 14 Jun 2016 13:39:31 +0100
changeset 379766 a9a741451bc7cd17bab122af52fc7a4d869d8878
parent 378038 5003caf3aa25dad509e53c68d2ee39de58fe5ec5
child 523568 f08446f5ff68f26f6b9b1e9fadabc082e5ff13f6
push id21051
push users.kaspari@gmail.com
push dateFri, 17 Jun 2016 10:09:53 +0000
reviewersjchen
bugs1279488
milestone50.0a1
Bug 1279488 - GeckoAppShell.uncaughtException(): Update state check. r?jchen MozReview-Commit-ID: 3RhHEhYIwQU
mobile/android/base/java/org/mozilla/gecko/GeckoAppShell.java
--- a/mobile/android/base/java/org/mozilla/gecko/GeckoAppShell.java
+++ b/mobile/android/base/java/org/mozilla/gecko/GeckoAppShell.java
@@ -129,17 +129,18 @@ public class GeckoAppShell
             extras.putString("BuildID", AppConstants.MOZ_APP_BUILDID);
             extras.putString("Vendor", AppConstants.MOZ_APP_VENDOR);
             extras.putString("ReleaseChannel", AppConstants.MOZ_UPDATE_CHANNEL);
             return extras;
         }
 
         @Override
         public void uncaughtException(final Thread thread, final Throwable exc) {
-            if (GeckoThread.isStateAtLeast(GeckoThread.State.EXITING)) {
+            if (GeckoThread.isState(GeckoThread.State.EXITING) ||
+                    GeckoThread.isState(GeckoThread.State.EXITED)) {
                 // We've called System.exit. All exceptions after this point are Android
                 // berating us for being nasty to it.
                 return;
             }
 
             super.uncaughtException(thread, exc);
         }