Force engine initialization during onCreate
- During stress test on browser we noticed that
registerActivityLifecycleCallbacks.onActivityCreated was not
getting called. This call was required to ensure that the engine was
initialized before launching an activity.Added code to ensure engine is
initialized in onCreate of activity that use engine API's directly.
- Added null check for ComboView.hide method
diff --git a/src/com/android/browser/Browser.java b/src/com/android/browser/Browser.java
index 8270cfb..d79b957 100644
--- a/src/com/android/browser/Browser.java
+++ b/src/com/android/browser/Browser.java
@@ -119,6 +119,8 @@
// SWE: Avoid initializing the engine for sandboxed processes.
if (!isSandboxContext) {
+ if (LOGV_ENABLED)
+ Log.v(LOGTAG, "Browser.onCreate: Main Application");
BrowserSettings.initialize((Context) this);
Preloader.initialize((Context) this);
}