Backout 7b516748a65c for test failures

This commit is contained in:
Mark Finkle 2012-11-28 21:54:58 -05:00
parent adfc27f89d
commit 78f14de823

View File

@ -126,9 +126,7 @@ public class AwesomeBar extends GeckoActivity {
mTarget = intent.getStringExtra(TARGET_KEY); mTarget = intent.getStringExtra(TARGET_KEY);
if (mTarget.equals(Target.CURRENT_TAB.name())) { if (mTarget.equals(Target.CURRENT_TAB.name())) {
// Bug 816332 needs to be fixed to avoid AwesomeBar opening before tabs exist. if (Tabs.getInstance().getSelectedTab().isPrivate()) {
Tab tab = Tabs.getInstance().getSelectedTab();
if (tab != null && tab.isPrivate()) {
BrowserToolbarBackground mAddressBarBg = (BrowserToolbarBackground) findViewById(R.id.address_bar_bg); BrowserToolbarBackground mAddressBarBg = (BrowserToolbarBackground) findViewById(R.id.address_bar_bg);
mAddressBarBg.setPrivateMode(true); mAddressBarBg.setPrivateMode(true);