From 1d5863222c9cdace22039c078b0008b24a46a369 Mon Sep 17 00:00:00 2001 From: Sam Bosley Date: Thu, 9 Feb 2012 19:37:52 -0800 Subject: [PATCH] Fixed a bug where the wrong string would appear for the empty view on tag lists --- .../com/todoroo/astrid/actfm/TagViewFragment.java | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/astrid/plugin-src/com/todoroo/astrid/actfm/TagViewFragment.java b/astrid/plugin-src/com/todoroo/astrid/actfm/TagViewFragment.java index afed24c29..9885a7411 100644 --- a/astrid/plugin-src/com/todoroo/astrid/actfm/TagViewFragment.java +++ b/astrid/plugin-src/com/todoroo/astrid/actfm/TagViewFragment.java @@ -136,8 +136,6 @@ public class TagViewFragment extends TaskListFragment { ViewGroup parent = (ViewGroup) getActivity().getLayoutInflater().inflate(R.layout.task_list_body_tag, root, false); taskListView = super.getListBody(parent); - if(actFmPreferenceService.isLoggedIn()) - ((TextView)taskListView.findViewById(android.R.id.empty)).setText(R.string.DLG_loading); parent.addView(taskListView); return parent; @@ -263,15 +261,10 @@ public class TagViewFragment extends TaskListFragment { @Override public void run() { ContextManager.getContext().sendBroadcast(new Intent(AstridApiConstants.BROADCAST_EVENT_REFRESH)); - // Update comment unreadCount + ((TextView)taskListView.findViewById(android.R.id.empty)).setText(R.string.TLA_no_items); } })); Preferences.setLong(LAST_FETCH_KEY + tagData.getId(), DateUtilities.now()); - - final boolean noRemoteId = tagData.getValue(TagData.REMOTE_ID) == 0; - - if(noRemoteId && !manual) - ((TextView)taskListView.findViewById(android.R.id.empty)).setText(R.string.TLA_no_items); } private void setUpMembersGallery() {