diff options
author | John Reck <jreck@google.com> | 2010-12-03 17:56:17 -0800 |
---|---|---|
committer | John Reck <jreck@google.com> | 2010-12-15 13:57:27 -0800 |
commit | 958b24285bba0163bc4121a3fc0fb116aa563ed9 (patch) | |
tree | badb4d910fb5b8e738ee437ca9b983b9944f901e | |
parent | 6dda695b5eb2c7e2ec45d26ac9c049e231c6605d (diff) | |
download | packages_apps_Browser-958b24285bba0163bc4121a3fc0fb116aa563ed9.zip packages_apps_Browser-958b24285bba0163bc4121a3fc0fb116aa563ed9.tar.gz packages_apps_Browser-958b24285bba0163bc4121a3fc0fb116aa563ed9.tar.bz2 |
Closing last tab closes the browser
Bug: 3254181
Closing the last tab will now close the browser rather than creating a new
tab and then closing the old tab.
Change-Id: Iac458783eea4c4a893671281f2a631e0365f8697
-rw-r--r-- | src/com/android/browser/Controller.java | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/com/android/browser/Controller.java b/src/com/android/browser/Controller.java index 8483efa..4c17308 100644 --- a/src/com/android/browser/Controller.java +++ b/src/com/android/browser/Controller.java @@ -2152,10 +2152,7 @@ public class Controller removeComboView(); final Tab current = mTabControl.getCurrentTab(); if (mTabControl.getTabCount() == 1) { - // This is the last tab. Open a new one, with the home - // page and close the current one. - openTabToHomePage(); - closeTab(current); + mActivity.finish(); return; } final Tab parent = current.getParentTab(); |