OSDN Git Service

Remove the active tabs page when pausing the BrowserActivity.
authorLeon Scroggins <scroggo@google.com>
Fri, 11 Sep 2009 15:49:52 +0000 (11:49 -0400)
committerLeon Scroggins <scroggo@google.com>
Fri, 11 Sep 2009 18:11:24 +0000 (14:11 -0400)
This fixes http://b/issue?id=2113505

Change-Id: Ibb66546a86082986170ec983c4e081008182baac

src/com/android/browser/BrowserActivity.java

index 7e0db56..7e0f93d 100644 (file)
@@ -960,6 +960,14 @@ public class BrowserActivity extends Activity
         }
         mCredsDlg = null;
 
+        // FIXME: This removes the active tabs page and resets the menu to
+        // MAIN_MENU.  A better solution might be to do this work in onNewIntent
+        // but then we would need to save it in onSaveInstanceState and restore
+        // it in onCreate/onRestoreInstanceState
+        if (mActiveTabsPage != null) {
+            removeActiveTabPage(true);
+        }
+
         cancelStopToast();
 
         // unregister network state listener