Bug 935527 - Add getter for DoorHanger anchor view (r=margaret)

This commit is contained in:
Lucas Rocha 2013-11-08 15:11:42 +00:00
parent 20f9aac01f
commit b8df1644c0
2 changed files with 5 additions and 1 deletions

View File

@ -847,7 +847,7 @@ abstract public class BrowserApp extends GeckoApp
mBrowserToolbar.updateBackButton(false); mBrowserToolbar.updateBackButton(false);
mBrowserToolbar.updateForwardButton(false); mBrowserToolbar.updateForwardButton(false);
mDoorHangerPopup.setAnchor(mBrowserToolbar.mFavicon); mDoorHangerPopup.setAnchor(mBrowserToolbar.getDoorHangerAnchor());
// Listen to margin changes to position the toolbar correctly // Listen to margin changes to position the toolbar correctly
if (isDynamicToolbarEnabled()) { if (isDynamicToolbarEnabled()) {

View File

@ -1796,6 +1796,10 @@ public class BrowserToolbar extends GeckoRelativeLayout
} }
} }
public View getDoorHangerAnchor() {
return mFavicon;
}
public void onDestroy() { public void onDestroy() {
if (mPrefObserverId != null) { if (mPrefObserverId != null) {
PrefsHelper.removeObserver(mPrefObserverId); PrefsHelper.removeObserver(mPrefObserverId);