diff options
author | nebkat <nebkat@teamhacksung.org> | 2012-12-21 22:37:21 +0000 |
---|---|---|
committer | nebkat <nebkat@teamhacksung.org> | 2012-12-21 22:37:21 +0000 |
commit | 229ac203294898445ce64e2f9ccd2163d681c276 (patch) | |
tree | aa7b87fa20d44848b3b5a17b93f9f5b2198f254e /src/com/cyanogenmod | |
parent | cb97779e72dc9f3252ced48b88995ce309fba161 (diff) | |
download | packages_apps_trebuchet-229ac203294898445ce64e2f9ccd2163d681c276.zip packages_apps_trebuchet-229ac203294898445ce64e2f9ccd2163d681c276.tar.gz packages_apps_trebuchet-229ac203294898445ce64e2f9ccd2163d681c276.tar.bz2 |
AppsCustomizeTabHost: Fix apps sorting
Change-Id: I1153198d6b7c4436906fd6c392002f13c563406f
Diffstat (limited to 'src/com/cyanogenmod')
-rw-r--r-- | src/com/cyanogenmod/trebuchet/AppsCustomizeTabHost.java | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/src/com/cyanogenmod/trebuchet/AppsCustomizeTabHost.java b/src/com/cyanogenmod/trebuchet/AppsCustomizeTabHost.java index de7adcc..5bffe76 100644 --- a/src/com/cyanogenmod/trebuchet/AppsCustomizeTabHost.java +++ b/src/com/cyanogenmod/trebuchet/AppsCustomizeTabHost.java @@ -131,11 +131,14 @@ public class AppsCustomizeTabHost extends TabHost implements LauncherTransitiona tabView = (TextView) mLayoutInflater.inflate(R.layout.tab_widget_indicator, tabs, false); tabView.setText(label); tabView.setContentDescription(label); - tabView.setOnLongClickListener(new View.OnLongClickListener() { - public boolean onLongClick(View v) { - return true; - } - }); + if (getContext() instanceof Launcher) { + tabView.setOnLongClickListener(new View.OnLongClickListener() { + public boolean onLongClick(View v) { + ((Launcher) getContext()).onLongClickAppsTab(v); + return true; + } + }); + } addTab(newTabSpec(APPS_TAB_TAG).setIndicator(tabView).setContent(contentFactory)); label = getContext().getString(R.string.widgets_tab_label); tabView = (TextView) mLayoutInflater.inflate(R.layout.tab_widget_indicator, tabs, false); |