Bug 743633 - Dismissed doorhanger popup reappears when doorhanger notifications are added to background tabs. r=mfinkle

This commit is contained in:
Margaret Leibovic 2012-04-11 15:10:49 -07:00
parent ae15d9edfb
commit 84b17eb748

View File

@ -112,7 +112,9 @@ public class DoorHangerPopup extends PopupWindow {
tab.addDoorHanger(value, dh);
mContent.addView(dh);
updatePopup();
// Only update the popup if we're adding a notifcation to the selected tab
if (tab.equals(Tabs.getInstance().getSelectedTab()))
updatePopup();
}
// Updates popup contents to show doorhangers for the selected tab