Commit 25d3547e authored by Leon Scroggins's avatar Leon Scroggins
Browse files

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
parent 43de6166
......@@ -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();
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment