diff options
author | nebkat <nebkat@gmail.com> | 2011-12-26 12:36:32 +0000 |
---|---|---|
committer | Ricardo Cerqueira <cyanogenmod@cerqueira.org> | 2012-11-19 01:19:40 +0000 |
commit | e78f8ad769c5cbe688f54904c7870a19c0b9e1de (patch) | |
tree | 629b542529f428d5cb021bcfe9914abb578e20b1 /src/com/cyanogenmod/trebuchet/AppsCustomizeTabHost.java | |
parent | 5abfd39cdafb0d960bae913f345d31a91b7e05ca (diff) | |
download | packages_apps_trebuchet-e78f8ad769c5cbe688f54904c7870a19c0b9e1de.zip packages_apps_trebuchet-e78f8ad769c5cbe688f54904c7870a19c0b9e1de.tar.gz packages_apps_trebuchet-e78f8ad769c5cbe688f54904c7870a19c0b9e1de.tar.bz2 |
AppsCustomize: Apps Sorting Mode
Change-Id: I9b376c39da3039b7c9a37f0748a1d6b5dc67a471
Diffstat (limited to 'src/com/cyanogenmod/trebuchet/AppsCustomizeTabHost.java')
-rw-r--r-- | src/com/cyanogenmod/trebuchet/AppsCustomizeTabHost.java | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/com/cyanogenmod/trebuchet/AppsCustomizeTabHost.java b/src/com/cyanogenmod/trebuchet/AppsCustomizeTabHost.java index d9bbe6a..63eb013 100644 --- a/src/com/cyanogenmod/trebuchet/AppsCustomizeTabHost.java +++ b/src/com/cyanogenmod/trebuchet/AppsCustomizeTabHost.java @@ -70,6 +70,9 @@ public class AppsCustomizeTabHost extends TabHost implements LauncherTransitiona mTabsContainer.setAlpha(1f); } }; + + mLauncher = (Launcher) context; + // Preferences mJoinWidgetsApps = PreferencesProvider.Interface.Drawer.getJoinWidgetsApps(context); mFadeScrollingIndicator = PreferencesProvider.Interface.Drawer.Indicator.getFadeScrollingIndicator(context); @@ -130,6 +133,12 @@ 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) { + mLauncher.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); |