diff options
author | Winson Chung <winsonc@google.com> | 2011-05-02 13:35:34 -0700 |
---|---|---|
committer | Winson Chung <winsonc@google.com> | 2011-05-02 16:46:44 -0700 |
commit | fc79c8067e21e55fce3802a63e15ee4c6f11d595 (patch) | |
tree | ab88db769f49af5cb2a8773079ab92f7839aa028 /src/com/android/launcher2/AppsCustomizeTabHost.java | |
parent | 8ef487680042fc3045323223b15449b2bf40e8e3 (diff) | |
download | android_packages_apps_Trebuchet-fc79c8067e21e55fce3802a63e15ee4c6f11d595.tar.gz android_packages_apps_Trebuchet-fc79c8067e21e55fce3802a63e15ee4c6f11d595.tar.bz2 android_packages_apps_Trebuchet-fc79c8067e21e55fce3802a63e15ee4c6f11d595.zip |
Fixing drag and drop issues with AppsCustomize pane.
- Fixing issue with no-more-space error not showing
- Returning to first page of AllApps when leaving and coming back
Change-Id: If3fb1ba1abae9d453bb71214e44170df91a52189
Diffstat (limited to 'src/com/android/launcher2/AppsCustomizeTabHost.java')
-rw-r--r-- | src/com/android/launcher2/AppsCustomizeTabHost.java | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/com/android/launcher2/AppsCustomizeTabHost.java b/src/com/android/launcher2/AppsCustomizeTabHost.java index 5820ce710..15920c34a 100644 --- a/src/com/android/launcher2/AppsCustomizeTabHost.java +++ b/src/com/android/launcher2/AppsCustomizeTabHost.java @@ -96,6 +96,18 @@ public class AppsCustomizeTabHost extends TabHost implements LauncherTransitiona } /** + * Returns the tab tag for a given content type. + */ + public String getTabTagForContentType(AppsCustomizePagedView.ContentType type) { + if (type == AppsCustomizePagedView.ContentType.Applications) { + return APPS_TAB_TAG; + } else if (type == AppsCustomizePagedView.ContentType.Widgets) { + return WIDGETS_TAB_TAG; + } + return APPS_TAB_TAG; + } + + /** * Disable focus on anything under this view in the hierarchy if we are not visible. */ @Override |