From 56070888334000742984b6e2102a8eaa391d3094 Mon Sep 17 00:00:00 2001 From: Sriram Ramasubramanian Date: Mon, 24 Oct 2011 12:36:56 -0700 Subject: [PATCH] Bug 695152 - On rotation, the title and favicons should be preserved. r=evilfinkle --HG-- extra : rebase_source : 41eda4101e014f231de0139a6da0c9d12cc34d74 --- embedding/android/GeckoApp.java | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/embedding/android/GeckoApp.java b/embedding/android/GeckoApp.java index c89f389c171..c79c3951071 100644 --- a/embedding/android/GeckoApp.java +++ b/embedding/android/GeckoApp.java @@ -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);