diff options
author | Michael Kolb <kolby@google.com> | 2011-05-09 13:55:59 -0700 |
---|---|---|
committer | Michael Kolb <kolby@google.com> | 2011-05-09 14:54:17 -0700 |
commit | 7bcafde2ba532941c1eb8c9022eebd5398aeae2a (patch) | |
tree | 7e0d841873fd48d59fb4c11e1a7ac45220d4319c /src/com/android/browser/NavScreen.java | |
parent | 37a0bde01dc9655fc99ee2d63098ab073ac97e33 (diff) | |
download | packages_apps_Browser-7bcafde2ba532941c1eb8c9022eebd5398aeae2a.zip packages_apps_Browser-7bcafde2ba532941c1eb8c9022eebd5398aeae2a.tar.gz packages_apps_Browser-7bcafde2ba532941c1eb8c9022eebd5398aeae2a.tar.bz2 |
refactor open tab code
Change-Id: Ibcffa5a55b2b7dcf56174f9dd916a565b31506e9
Diffstat (limited to 'src/com/android/browser/NavScreen.java')
-rw-r--r-- | src/com/android/browser/NavScreen.java | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/com/android/browser/NavScreen.java b/src/com/android/browser/NavScreen.java index 848b7b1..4095a96 100644 --- a/src/com/android/browser/NavScreen.java +++ b/src/com/android/browser/NavScreen.java @@ -239,14 +239,12 @@ public class NavScreen extends LinearLayout implements OnClickListener { showMenu(); } else if (mNewIncognito == v) { mUi.hideNavScreen(true); - mUiController.openIncognitoTab(); + mUiController.openTab(null, true, true, false); } } private void openNewTab() { - Tab tab = mUiController.createNewTab( - BrowserSettings.getInstance().getHomePage(), - false); + Tab tab = mUiController.openTabToHomePage(); mAdapter.notifyDataSetChanged(); if (tab != null) { |