mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-25 05:41:12 +00:00
Bug 1283627 - Update home pager immediately after restoring tabs. r=JanH
MozReview-Commit-ID: IidO1rCmeb0 --HG-- extra : rebase_source : b13291d1a6e0d7909ccf2b3a58a74fd769fc03d7
This commit is contained in:
parent
18318f389f
commit
c477247a23
@ -343,6 +343,14 @@ public class BrowserApp extends GeckoApp
|
|||||||
if (msg != Tabs.TabEvents.RESTORED) {
|
if (msg != Tabs.TabEvents.RESTORED) {
|
||||||
throw new IllegalArgumentException("onTabChanged:" + msg + " must specify a tab.");
|
throw new IllegalArgumentException("onTabChanged:" + msg + " must specify a tab.");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
final Tab selectedTab = Tabs.getInstance().getSelectedTab();
|
||||||
|
if (selectedTab != null) {
|
||||||
|
// After restoring the tabs we want to update the home pager immediately. Otherwise we
|
||||||
|
// might wait for an event coming from Gecko and this can take several seconds. (Bug 1283627)
|
||||||
|
updateHomePagerForTab(selectedTab);
|
||||||
|
}
|
||||||
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user