mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 935527 - Add getter for DoorHanger anchor view (r=margaret)
This commit is contained in:
parent
20f9aac01f
commit
b8df1644c0
@ -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()) {
|
||||||
|
@ -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);
|
||||||
|
Loading…
Reference in New Issue
Block a user