зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1086994 - Enable crash handling in search activity; r=margaret
This commit is contained in:
Родитель
2b481ccd42
Коммит
4dd22b7ee0
|
@ -1125,6 +1125,8 @@ public abstract class GeckoApp
|
|||
@Override
|
||||
public void onCreate(Bundle savedInstanceState)
|
||||
{
|
||||
GeckoAppShell.ensureCrashHandling();
|
||||
|
||||
// Enable Android Strict Mode for developers' local builds (the "default" channel).
|
||||
if ("default".equals(AppConstants.MOZ_UPDATE_CHANNEL)) {
|
||||
enableStrictMode();
|
||||
|
|
|
@ -190,6 +190,11 @@ public class GeckoAppShell
|
|||
}
|
||||
};
|
||||
|
||||
public static CrashHandler ensureCrashHandling() {
|
||||
// Crash handling is automatically enabled when GeckoAppShell is loaded.
|
||||
return CRASH_HANDLER;
|
||||
}
|
||||
|
||||
private static final Queue<GeckoEvent> PENDING_EVENTS = new ConcurrentLinkedQueue<GeckoEvent>();
|
||||
private static final Map<String, String> ALERT_COOKIES = new ConcurrentHashMap<String, String>();
|
||||
|
||||
|
|
|
@ -4,6 +4,7 @@
|
|||
|
||||
package org.mozilla.search;
|
||||
|
||||
import org.mozilla.gecko.GeckoAppShell;
|
||||
import org.mozilla.gecko.LocaleAware;
|
||||
import org.mozilla.gecko.R;
|
||||
import org.mozilla.gecko.Telemetry;
|
||||
|
@ -92,6 +93,8 @@ public class SearchActivity extends LocaleAware.LocaleAwareFragmentActivity
|
|||
|
||||
@Override
|
||||
protected void onCreate(Bundle savedInstanceState) {
|
||||
GeckoAppShell.ensureCrashHandling();
|
||||
|
||||
super.onCreate(savedInstanceState);
|
||||
setContentView(R.layout.search_activity_main);
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче