зеркало из https://github.com/mozilla/pjs.git
Bug 695152 - On rotation, the title and favicons should be preserved. r=evilfinkle
--HG-- extra : rebase_source : 41eda4101e014f231de0139a6da0c9d12cc34d74
This commit is contained in:
Родитель
1bb834afba
Коммит
5607088833
|
@ -654,6 +654,13 @@ abstract public class GeckoApp
|
|||
mGeckoLayout = (RelativeLayout) findViewById(R.id.geckoLayout);
|
||||
mBrowserToolbar = (BrowserToolbar) findViewById(R.id.browserToolbar);
|
||||
|
||||
Tab tab = Tabs.getInstance().getSelectedTab();
|
||||
if (tab != null) {
|
||||
mBrowserToolbar.setTitle(tab.getTitle());
|
||||
mBrowserToolbar.setFavicon(tab.getFavicon());
|
||||
mBrowserToolbar.updateTabs(Tabs.getInstance().getCount());
|
||||
}
|
||||
|
||||
if (surfaceView == null) {
|
||||
surfaceView = new GeckoSurfaceView(this);
|
||||
mGeckoLayout.addView(surfaceView);
|
||||
|
|
Загрузка…
Ссылка в новой задаче