summaryrefslogtreecommitdiffstats
path: root/src/com
diff options
context:
space:
mode:
authorLeon Scroggins <scroggo@google.com>2009-09-15 11:37:27 -0400
committerLeon Scroggins <scroggo@google.com>2009-09-15 12:45:26 -0400
commit25d3547e0df084f963e38c6a93c99b02bd619de3 (patch)
tree58977cdce35d936394f1251bba39d4a74878068a /src/com
parent43de61666cfc98a3acc41c7161a1a8b0bdb2b72b (diff)
downloadpackages_apps_Browser-25d3547e0df084f963e38c6a93c99b02bd619de3.tar.gz
packages_apps_Browser-25d3547e0df084f963e38c6a93c99b02bd619de3.tar.bz2
packages_apps_Browser-25d3547e0df084f963e38c6a93c99b02bd619de3.zip
When opening in the background, do not move the tab to front.
Remove some code which I assume was there for going to the tab overview, and was incorrectly kept around. When opening a tab in the background, we do not need to set it as the current tab. Fixes http://b/issue?id=2118522 Change-Id: Ieaf512399b03307a1f70d952b648c0cfcf181c29
Diffstat (limited to 'src/com')
-rw-r--r--src/com/android/browser/BrowserActivity.java9
1 files changed, 1 insertions, 8 deletions
diff --git a/src/com/android/browser/BrowserActivity.java b/src/com/android/browser/BrowserActivity.java
index a9fa8f581..4188fc75d 100644
--- a/src/com/android/browser/BrowserActivity.java
+++ b/src/com/android/browser/BrowserActivity.java
@@ -3993,14 +3993,7 @@ public class BrowserActivity extends Activity
String data = intent.getAction();
Bundle extras = intent.getExtras();
if (extras != null && extras.getBoolean("new_window", false)) {
- final TabControl.Tab newTab = openTab(data);
- if (mSettings.openInBackground() &&
- newTab != null) {
- mTabControl.populatePickerData(newTab);
- mTabControl.setCurrentTab(newTab);
- int newIndex = mTabControl.getCurrentIndex();
- mTitleBar.setCurrentTab(newIndex);
- }
+ openTab(data);
} else {
final TabControl.Tab currentTab =
mTabControl.getCurrentTab();