From 78c69095eac147b60ce4ea5685c2dfcb4448c9f4 Mon Sep 17 00:00:00 2001 From: Suchi Amalapurapu Date: Mon, 28 Sep 2009 11:27:48 -0700 Subject: [PATCH] Rename empty view so that the standard list view implementation displays empty list message when list goes empty. Ideally the list is not empty for running processes and All filter options. so the message is just set to third party apps Remove the empty list view logic from code base --- res/layout/compute_sizes.xml | 2 +- src/com/android/settings/ManageApplications.java | 16 ---------------- 2 files changed, 1 insertion(+), 17 deletions(-) diff --git a/res/layout/compute_sizes.xml b/res/layout/compute_sizes.xml index 1c8e96648d2..b32ba5885b0 100755 --- a/res/layout/compute_sizes.xml +++ b/res/layout/compute_sizes.xml @@ -23,7 +23,7 @@ android:drawSelectorOnTop="false" android:layout_width="fill_parent" android:layout_height="wrap_content" /> - 0) { - mListView.setVisibility(View.VISIBLE); - mEmptyView.setVisibility(View.GONE); - } else { - mListView.setVisibility(View.GONE); - mEmptyView.setVisibility(View.VISIBLE); - } - } - // internal structure used to track added and deleted packages when // the activity has focus static class AddRemoveInfo { @@ -1192,7 +1178,6 @@ public class ManageApplications extends ListActivity implements } else { notifyDataSetChanged(); } - showEmptyViewIfListEmpty(); return true; } @@ -1594,7 +1579,6 @@ public class ManageApplications extends ListActivity implements // initialize the inflater mInflater = (LayoutInflater)getSystemService(Context.LAYOUT_INFLATER_SERVICE); mReceiver = new PackageIntentReceiver(); - mEmptyView = (TextView) findViewById(R.id.empty_view); mObserver = new PkgSizeObserver(); // Create adapter and list view here List appList = getInstalledApps(mSortOrder);