summaryrefslogtreecommitdiffstats
path: root/src/com
diff options
context:
space:
mode:
authorWinson Chung <winsonc@google.com>2010-10-25 13:32:31 -0700
committerWinson Chung <winsonc@google.com>2010-10-25 13:41:39 -0700
commit960c6f4bcfa852fc4bbd2291946faf982cfa432f (patch)
tree0ab9701a9222f51dc9ab352f6d84ebf6a4276ec5 /src/com
parenta944215d364c178c9b0b8f5bdcce16e1f10c552d (diff)
downloadandroid_packages_apps_Trebuchet-960c6f4bcfa852fc4bbd2291946faf982cfa432f.tar.gz
android_packages_apps_Trebuchet-960c6f4bcfa852fc4bbd2291946faf982cfa432f.tar.bz2
android_packages_apps_Trebuchet-960c6f4bcfa852fc4bbd2291946faf982cfa432f.zip
Removing Apps/Games tab.
Change-Id: Ib0b8d096a0ead6f1a08df14e90fde96a392c2f50
Diffstat (limited to 'src/com')
-rw-r--r--src/com/android/launcher2/AllAppsPagedView.java3
-rw-r--r--src/com/android/launcher2/AllAppsTabbed.java12
2 files changed, 0 insertions, 15 deletions
diff --git a/src/com/android/launcher2/AllAppsPagedView.java b/src/com/android/launcher2/AllAppsPagedView.java
index 5de53d80f..54b2d27b0 100644
--- a/src/com/android/launcher2/AllAppsPagedView.java
+++ b/src/com/android/launcher2/AllAppsPagedView.java
@@ -430,9 +430,6 @@ public class AllAppsPagedView extends PagedView
TextView icon = (TextView) mInflater.inflate(
R.layout.all_apps_no_items_placeholder, layout, false);
switch (mAppFilter) {
- case ApplicationInfo.GAME_FLAG:
- icon.setText(mContext.getString(R.string.all_apps_no_games));
- break;
case ApplicationInfo.DOWNLOADED_FLAG:
icon.setText(mContext.getString(R.string.all_apps_no_downloads));
break;
diff --git a/src/com/android/launcher2/AllAppsTabbed.java b/src/com/android/launcher2/AllAppsTabbed.java
index ac6484db8..eaeb80f91 100644
--- a/src/com/android/launcher2/AllAppsTabbed.java
+++ b/src/com/android/launcher2/AllAppsTabbed.java
@@ -39,8 +39,6 @@ public class AllAppsTabbed extends TabHost implements AllAppsView {
private static final String TAG = "Launcher.AllAppsTabbed";
private static final String TAG_ALL = "ALL";
- private static final String TAG_APPS = "APPS";
- private static final String TAG_GAMES = "GAMES";
private static final String TAG_DOWNLOADED = "DOWNLOADED";
private AllAppsPagedView mAllApps;
@@ -73,12 +71,6 @@ public class AllAppsTabbed extends TabHost implements AllAppsView {
String label = mContext.getString(R.string.all_apps_tab_all);
addTab(newTabSpec(TAG_ALL).setIndicator(label).setContent(contentFactory));
- label = mContext.getString(R.string.all_apps_tab_apps);
- addTab(newTabSpec(TAG_APPS).setIndicator(label).setContent(contentFactory));
-
- label = mContext.getString(R.string.all_apps_tab_games);
- addTab(newTabSpec(TAG_GAMES).setIndicator(label).setContent(contentFactory));
-
label = mContext.getString(R.string.all_apps_tab_downloaded);
addTab(newTabSpec(TAG_DOWNLOADED).setIndicator(label).setContent(contentFactory));
@@ -95,10 +87,6 @@ public class AllAppsTabbed extends TabHost implements AllAppsView {
String tag = getCurrentTabTag();
if (tag == TAG_ALL) {
mAllApps.setAppFilter(AllAppsPagedView.ALL_APPS_FLAG);
- } else if (tag == TAG_APPS) {
- mAllApps.setAppFilter(ApplicationInfo.APP_FLAG);
- } else if (tag == TAG_GAMES) {
- mAllApps.setAppFilter(ApplicationInfo.GAME_FLAG);
} else if (tag == TAG_DOWNLOADED) {
mAllApps.setAppFilter(ApplicationInfo.DOWNLOADED_FLAG);
}