Fix issue with memory monitor killing background tabs
When multiple tabs are opened in background memory monitor would allow only a
certain number of tabs to load, other tabs would never have a chance to save instances
which can be restored from WebView. We ensure to restore the background tabs from
original URL.
Change-Id: I940d4cd8f3b077d5351cb34ce441bd4b74ae689b
diff --git a/src/com/android/browser/TabControl.java b/src/com/android/browser/TabControl.java
index 81da696..91d2bca 100644
--- a/src/com/android/browser/TabControl.java
+++ b/src/com/android/browser/TabControl.java
@@ -249,7 +249,7 @@
final WebView w = createNewWebView(privateBrowsing, backgroundTab);
// Create a new tab and add it to the tab list
- Tab t = new Tab(mController, w, state);
+ Tab t = new Tab(mController, w, state, backgroundTab);
mTabs.add(t);
mTabCountObservable.set(mTabs.size());
if (privateBrowsing) {