зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1073328 - Prevent using our own handler as system handler; r=snorp
This commit is contained in:
Родитель
52a3b4cf21
Коммит
af3e8ad806
|
@ -212,7 +212,9 @@ public class GeckoAppShell
|
|||
public static native void dispatchMemoryPressure();
|
||||
|
||||
public static void registerGlobalExceptionHandler() {
|
||||
systemUncaughtHandler = Thread.getDefaultUncaughtExceptionHandler();
|
||||
if (systemUncaughtHandler == null) {
|
||||
systemUncaughtHandler = Thread.getDefaultUncaughtExceptionHandler();
|
||||
}
|
||||
|
||||
Thread.setDefaultUncaughtExceptionHandler(new Thread.UncaughtExceptionHandler() {
|
||||
@Override
|
||||
|
|
Загрузка…
Ссылка в новой задаче