OSDN Git Service

When loading a new Intent, remove appTab association.
authorLeon Scroggins <scroggo@google.com>
Thu, 15 Apr 2010 15:01:53 +0000 (11:01 -0400)
committerLeon Scroggins <scroggo@google.com>
Thu, 15 Apr 2010 15:28:42 +0000 (11:28 -0400)
Bug 2598904

Change-Id: Ib4ef625606ccdae4b24efd0761f416e4851ca800

src/com/android/browser/BrowserActivity.java

index f9558b9..607dc38 100644 (file)
@@ -539,6 +539,10 @@ public class BrowserActivity extends Activity
                 }
                 // Get rid of the subwindow if it exists
                 dismissSubWindow(current);
+                // If the current Tab is being used as an application tab,
+                // remove the association, since the new Intent means that it is
+                // no longer associated with that application.
+                current.setAppId(null);
                 loadUrlDataIn(current, urlData);
             }
         }