resolved conflicts for merge of 918e1d78 to eclair
diff --git a/src/com/android/browser/BrowserActivity.java b/src/com/android/browser/BrowserActivity.java
index 5e63c39..f5d71d6 100644
--- a/src/com/android/browser/BrowserActivity.java
+++ b/src/com/android/browser/BrowserActivity.java
@@ -1972,7 +1972,17 @@
}
// call pauseWebViewTimers() now, we won't be able to call
// it in onPause() as the WebView won't be valid.
+ // Temporarily change mActivityInPause to be true as
+ // pauseWebViewTimers() will do nothing if mActivityInPause
+ // is false.
+ boolean savedState = mActivityInPause;
+ if (savedState) {
+ Log.e(LOGTAG, "BrowserActivity is already paused "
+ + "while handing goBackOnePageOrQuit.");
+ }
+ mActivityInPause = true;
pauseWebViewTimers();
+ mActivityInPause = savedState;
removeTabFromContentView(current);
mTabControl.removeTab(current);
}