Added comments to strings-tags, tweaked tag deleted receiver

pull/14/head
Sam Bosley 14 years ago
parent af84f46e67
commit e9efc8ad09

@ -72,10 +72,10 @@
<!-- context menu option to leave a shared list -->
<string name="tag_cm_leave">Leave List</string>
<!-- Dialog to confirm deletion of a tag -->
<!-- Dialog to confirm deletion of a tag (%s -> the name of the list to be deleted) -->
<string name="DLG_delete_this_tag_question">Delete this list: %s? (No tasks will be deleted.)</string>
<!-- Dialog to confirm leaving a shared tag -->
<!-- Dialog to confirm leaving a shared tag (%s -> the name of the shared list to leave) -->
<string name="DLG_leave_this_shared_tag_question">Leave this shared list: %s? (No tasks will be deleted.)</string>
<!-- Dialog to rename tag -->

@ -391,8 +391,8 @@ public class TaskListActivity extends AstridActivity implements MainMenuListener
String deletedTag = intent.getStringExtra(TagViewFragment.EXTRA_TAG_NAME);
FilterListFragment fl = getFilterListFragment();
if (fl != null) {
String currentlyShowing = getIntent().getStringExtra(TagViewFragment.EXTRA_TAG_NAME);
if (currentlyShowing != null && currentlyShowing.equals(deletedTag)) {
Filter currentlyShowing = getIntent().getParcelableExtra(TaskListFragment.TOKEN_FILTER);
if (currentlyShowing != null && currentlyShowing.title != null && currentlyShowing.title.equals(deletedTag)) {
fl.switchToActiveTasks();
}
fl.clear(); // Should auto refresh

Loading…
Cancel
Save