diff options
author | Winson Chung <winsonc@google.com> | 2011-05-26 12:03:43 -0700 |
---|---|---|
committer | Winson Chung <winsonc@google.com> | 2011-05-26 15:03:07 -0700 |
commit | 55b6550e37da5df2fda44fc712bc082731f2d8e7 (patch) | |
tree | 4003df523f68b268838759381258def2976a45fe /src/com/android/launcher2/AppsCustomizeTabHost.java | |
parent | ed4c1f1eaddd23ea3a19750533e84d7411334534 (diff) | |
download | android_packages_apps_Trebuchet-55b6550e37da5df2fda44fc712bc082731f2d8e7.tar.gz android_packages_apps_Trebuchet-55b6550e37da5df2fda44fc712bc082731f2d8e7.tar.bz2 android_packages_apps_Trebuchet-55b6550e37da5df2fda44fc712bc082731f2d8e7.zip |
Changing long-press-on-workspace behaviour to show Applications & Widgets.
- Disabling tap-on-widgets-to-add in favour of long press
Change-Id: Ia82143b74216a968ab11890cba83a01c4ab72a06
Diffstat (limited to 'src/com/android/launcher2/AppsCustomizeTabHost.java')
-rw-r--r-- | src/com/android/launcher2/AppsCustomizeTabHost.java | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/com/android/launcher2/AppsCustomizeTabHost.java b/src/com/android/launcher2/AppsCustomizeTabHost.java index e2d21b6cb..cd8e7efb0 100644 --- a/src/com/android/launcher2/AppsCustomizeTabHost.java +++ b/src/com/android/launcher2/AppsCustomizeTabHost.java @@ -42,6 +42,13 @@ public class AppsCustomizeTabHost extends TabHost implements LauncherTransitiona mLayoutInflater = LayoutInflater.from(context); } + void selectAppsTab() { + setCurrentTabByTag(APPS_TAB_TAG); + } + void selectWidgetsTab() { + setCurrentTabByTag(WIDGETS_TAB_TAG); + } + /** * Setup the tab host and create all necessary tabs. */ |