Bug 1136469 - Remove arrow from doorhanger. r=margaret

This commit is contained in:
Chenxia Liu
2015-03-04 18:09:25 -08:00
parent 453b8d8228
commit 097e8c68ef
13 changed files with 150 additions and 231 deletions

View File

@@ -192,7 +192,7 @@ public class ToolbarDisplayLayout extends ThemedLinearLayout
mSiteSecurityVisible = (mSiteSecurity.getVisibility() == View.VISIBLE);
mSiteIdentityPopup = new SiteIdentityPopup(mActivity);
mSiteIdentityPopup.setAnchor(mSiteSecurity);
mSiteIdentityPopup.setAnchor(getDoorHangerAnchor());
mStop = (ImageButton) findViewById(R.id.stop);
mPageActionLayout = (PageActionLayout) findViewById(R.id.page_action_layout);
@@ -557,11 +557,7 @@ public class ToolbarDisplayLayout extends ThemedLinearLayout
}
View getDoorHangerAnchor() {
if (!HardwareUtils.isTablet()) {
return mFavicon;
} else {
return mSiteSecurity;
}
return this;
}
void prepareForwardAnimation(PropertyAnimator anim, ForwardButtonAnimation animation, int width) {