mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-24 21:31:04 +00:00
Bug 983609 - Only update toolbar private mode when a new tab is selected (r=bnicholson)
This commit is contained in:
parent
bce44a5cca
commit
1d5515c4c1
@ -503,6 +503,9 @@ public class BrowserToolbar extends GeckoRelativeLayout
|
||||
break;
|
||||
|
||||
case SELECTED:
|
||||
flags.add(UpdateFlags.PRIVATE_MODE);
|
||||
setPrivateMode(tab.isPrivate());
|
||||
// Fall through.
|
||||
case LOAD_ERROR:
|
||||
flags.add(UpdateFlags.TITLE);
|
||||
// Fall through.
|
||||
@ -511,12 +514,9 @@ public class BrowserToolbar extends GeckoRelativeLayout
|
||||
// us of a title change, so we don't update the title here.
|
||||
flags.add(UpdateFlags.FAVICON);
|
||||
flags.add(UpdateFlags.SITE_IDENTITY);
|
||||
flags.add(UpdateFlags.PRIVATE_MODE);
|
||||
|
||||
updateBackButton(tab);
|
||||
updateForwardButton(tab);
|
||||
|
||||
setPrivateMode(tab.isPrivate());
|
||||
break;
|
||||
|
||||
case TITLE:
|
||||
|
Loading…
Reference in New Issue
Block a user