summaryrefslogtreecommitdiffstats
path: root/src/com/android/browser/Controller.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/com/android/browser/Controller.java')
-rw-r--r--src/com/android/browser/Controller.java10
1 files changed, 3 insertions, 7 deletions
diff --git a/src/com/android/browser/Controller.java b/src/com/android/browser/Controller.java
index 58edd23..adc2677 100644
--- a/src/com/android/browser/Controller.java
+++ b/src/com/android/browser/Controller.java
@@ -332,6 +332,9 @@ public class Controller
restoredTabs.add(t.getId());
}
BackgroundHandler.execute(new PruneThumbnails(mActivity, restoredTabs));
+ if (tabs.size() == 0) {
+ openTabToHomePage();
+ }
mUi.updateTabs(tabs);
// TabControl.restoreState() will create a new tab even if
// restoring the state fails.
@@ -1207,13 +1210,6 @@ public class Controller
// combo view callbacks
- /**
- * callback from ComboPage when clear history is requested
- */
- public void onRemoveParentChildRelationships() {
- mTabControl.removeParentChildRelationShips();
- }
-
// key handling
protected void onBackKey() {
if (!mUi.onBackKey()) {