diff --git a/astrid/plugin-src/com/todoroo/astrid/actfm/TagCommentsFragment.java b/astrid/plugin-src/com/todoroo/astrid/actfm/TagCommentsFragment.java index afd6e1dcf..421e3d188 100644 --- a/astrid/plugin-src/com/todoroo/astrid/actfm/TagCommentsFragment.java +++ b/astrid/plugin-src/com/todoroo/astrid/actfm/TagCommentsFragment.java @@ -183,11 +183,6 @@ public class TagCommentsFragment extends CommentsFragment { if(tagData != null && RemoteModel.isValidUuid(tagData.getValue(TagData.UUID))) { Preferences.setLong(UPDATES_LAST_VIEWED + tagData.getValue(TagData.UUID), DateUtilities.now()); Activity activity = getActivity(); - if (activity instanceof TaskListActivity) { - ((TaskListActivity) activity).setCommentsCount(0); - } } } - - } diff --git a/astrid/plugin-src/com/todoroo/astrid/actfm/TagViewFragment.java b/astrid/plugin-src/com/todoroo/astrid/actfm/TagViewFragment.java index ed4c1729b..e1988211b 100644 --- a/astrid/plugin-src/com/todoroo/astrid/actfm/TagViewFragment.java +++ b/astrid/plugin-src/com/todoroo/astrid/actfm/TagViewFragment.java @@ -275,7 +275,6 @@ public class TagViewFragment extends TaskListFragment { if (extras.getBoolean(TOKEN_START_ACTIVITY, false)) { extras.remove(TOKEN_START_ACTIVITY); - activity.showComments(); } } @@ -298,31 +297,10 @@ public class TagViewFragment extends TaskListFragment { tagData.setValue(TagData.TASK_COUNT, count); tagDataService.save(tagData); } - - updateCommentCount(); } @Override public void requestCommentCountUpdate() { - updateCommentCount(); - } - - private void updateCommentCount() { - if (tagData != null) { - long lastViewedComments = Preferences.getLong(CommentsFragment.UPDATES_LAST_VIEWED + tagData.getValue(TagData.UUID), 0); - int unreadCount = 0; - TodorooCursor commentCursor = tagDataService.getUserActivityWithExtraCriteria(tagData, UserActivity.CREATED_AT.gt(lastViewedComments)); - try { - unreadCount = commentCursor.getCount(); - } finally { - commentCursor.close(); - } - - TaskListActivity tla = (TaskListActivity) getActivity(); - if (tla != null) { - tla.setCommentsCount(unreadCount); - } - } } // --------------------------------------------------------- refresh data @@ -735,8 +713,6 @@ public class TagViewFragment extends TaskListFragment { IntentFilter intentFilter = new IntentFilter(BROADCAST_TAG_ACTIVITY); getActivity().registerReceiver(notifyReceiver, intentFilter); - - updateCommentCount(); } @Override diff --git a/astrid/res/drawable/comment_blue.xml b/astrid/res/drawable/comment_blue.xml deleted file mode 100644 index eb8874e7c..000000000 --- a/astrid/res/drawable/comment_blue.xml +++ /dev/null @@ -1,11 +0,0 @@ - - - - - - - \ No newline at end of file diff --git a/astrid/res/drawable/comment_blue_alt.xml b/astrid/res/drawable/comment_blue_alt.xml deleted file mode 100644 index e58cf8227..000000000 --- a/astrid/res/drawable/comment_blue_alt.xml +++ /dev/null @@ -1,11 +0,0 @@ - - - - - - - \ No newline at end of file diff --git a/astrid/res/drawable/comment_blue_alt_filled_normal.png b/astrid/res/drawable/comment_blue_alt_filled_normal.png deleted file mode 100644 index 8af99bf79..000000000 Binary files a/astrid/res/drawable/comment_blue_alt_filled_normal.png and /dev/null differ diff --git a/astrid/res/drawable/comment_blue_alt_filled_pressed.png b/astrid/res/drawable/comment_blue_alt_filled_pressed.png deleted file mode 100644 index 64ed21b65..000000000 Binary files a/astrid/res/drawable/comment_blue_alt_filled_pressed.png and /dev/null differ diff --git a/astrid/res/drawable/comment_blue_alt_normal.png b/astrid/res/drawable/comment_blue_alt_normal.png deleted file mode 100644 index 4c914ede8..000000000 Binary files a/astrid/res/drawable/comment_blue_alt_normal.png and /dev/null differ diff --git a/astrid/res/drawable/comment_blue_alt_pressed.png b/astrid/res/drawable/comment_blue_alt_pressed.png deleted file mode 100644 index 13b60584f..000000000 Binary files a/astrid/res/drawable/comment_blue_alt_pressed.png and /dev/null differ diff --git a/astrid/res/drawable/comment_blue_filled.xml b/astrid/res/drawable/comment_blue_filled.xml deleted file mode 100644 index 0999d1f70..000000000 --- a/astrid/res/drawable/comment_blue_filled.xml +++ /dev/null @@ -1,11 +0,0 @@ - - - - - - - \ No newline at end of file diff --git a/astrid/res/drawable/comment_blue_filled_alt.xml b/astrid/res/drawable/comment_blue_filled_alt.xml deleted file mode 100644 index 0a04982a6..000000000 --- a/astrid/res/drawable/comment_blue_filled_alt.xml +++ /dev/null @@ -1,11 +0,0 @@ - - - - - - - \ No newline at end of file diff --git a/astrid/res/drawable/comment_blue_filled_normal.png b/astrid/res/drawable/comment_blue_filled_normal.png deleted file mode 100644 index 8d73fd07e..000000000 Binary files a/astrid/res/drawable/comment_blue_filled_normal.png and /dev/null differ diff --git a/astrid/res/drawable/comment_blue_filled_pressed.png b/astrid/res/drawable/comment_blue_filled_pressed.png deleted file mode 100644 index 6319fdf0f..000000000 Binary files a/astrid/res/drawable/comment_blue_filled_pressed.png and /dev/null differ diff --git a/astrid/res/drawable/comment_blue_normal.png b/astrid/res/drawable/comment_blue_normal.png deleted file mode 100644 index 62ffcca08..000000000 Binary files a/astrid/res/drawable/comment_blue_normal.png and /dev/null differ diff --git a/astrid/res/drawable/comment_blue_pressed.png b/astrid/res/drawable/comment_blue_pressed.png deleted file mode 100644 index ce8111ab6..000000000 Binary files a/astrid/res/drawable/comment_blue_pressed.png and /dev/null differ diff --git a/astrid/res/drawable/comment_dark_blue.xml b/astrid/res/drawable/comment_dark_blue.xml deleted file mode 100644 index 5ec798a31..000000000 --- a/astrid/res/drawable/comment_dark_blue.xml +++ /dev/null @@ -1,11 +0,0 @@ - - - - - - - \ No newline at end of file diff --git a/astrid/res/drawable/comment_dark_blue_filled.xml b/astrid/res/drawable/comment_dark_blue_filled.xml deleted file mode 100644 index f8e030937..000000000 --- a/astrid/res/drawable/comment_dark_blue_filled.xml +++ /dev/null @@ -1,11 +0,0 @@ - - - - - - - \ No newline at end of file diff --git a/astrid/res/drawable/comment_dark_blue_filled_normal.png b/astrid/res/drawable/comment_dark_blue_filled_normal.png deleted file mode 100644 index 9f1b3c182..000000000 Binary files a/astrid/res/drawable/comment_dark_blue_filled_normal.png and /dev/null differ diff --git a/astrid/res/drawable/comment_dark_blue_filled_pressed.png b/astrid/res/drawable/comment_dark_blue_filled_pressed.png deleted file mode 100644 index f78d4f611..000000000 Binary files a/astrid/res/drawable/comment_dark_blue_filled_pressed.png and /dev/null differ diff --git a/astrid/res/drawable/comment_dark_blue_normal.png b/astrid/res/drawable/comment_dark_blue_normal.png deleted file mode 100644 index 9c7bcb189..000000000 Binary files a/astrid/res/drawable/comment_dark_blue_normal.png and /dev/null differ diff --git a/astrid/res/drawable/comment_dark_blue_pressed.png b/astrid/res/drawable/comment_dark_blue_pressed.png deleted file mode 100644 index 03e0c6583..000000000 Binary files a/astrid/res/drawable/comment_dark_blue_pressed.png and /dev/null differ diff --git a/astrid/res/drawable/comment_red.xml b/astrid/res/drawable/comment_red.xml deleted file mode 100644 index 82a4c4268..000000000 --- a/astrid/res/drawable/comment_red.xml +++ /dev/null @@ -1,11 +0,0 @@ - - - - - - - \ No newline at end of file diff --git a/astrid/res/drawable/comment_red_filled.xml b/astrid/res/drawable/comment_red_filled.xml deleted file mode 100644 index 19cc37333..000000000 --- a/astrid/res/drawable/comment_red_filled.xml +++ /dev/null @@ -1,11 +0,0 @@ - - - - - - - \ No newline at end of file diff --git a/astrid/res/drawable/comment_red_filled_normal.png b/astrid/res/drawable/comment_red_filled_normal.png deleted file mode 100644 index 9ed72d08e..000000000 Binary files a/astrid/res/drawable/comment_red_filled_normal.png and /dev/null differ diff --git a/astrid/res/drawable/comment_red_filled_pressed.png b/astrid/res/drawable/comment_red_filled_pressed.png deleted file mode 100644 index 114d8ef37..000000000 Binary files a/astrid/res/drawable/comment_red_filled_pressed.png and /dev/null differ diff --git a/astrid/res/drawable/comment_red_normal.png b/astrid/res/drawable/comment_red_normal.png deleted file mode 100644 index 14a0ee676..000000000 Binary files a/astrid/res/drawable/comment_red_normal.png and /dev/null differ diff --git a/astrid/res/drawable/comment_red_pressed.png b/astrid/res/drawable/comment_red_pressed.png deleted file mode 100644 index 2a7647e03..000000000 Binary files a/astrid/res/drawable/comment_red_pressed.png and /dev/null differ diff --git a/astrid/res/layout/header_nav_views.xml b/astrid/res/layout/header_nav_views.xml index 2e6481f8d..c830fd410 100644 --- a/astrid/res/layout/header_nav_views.xml +++ b/astrid/res/layout/header_nav_views.xml @@ -67,13 +67,5 @@ style="@style/TextAppearance.ActionBar_ListsHeader" android:textSize="16sp" android:visibility="gone"/> - -