Suppress a crash that can occur with swipe between lists turned on

pull/14/head
Sam Bosley 12 years ago
parent 39216200cc
commit e69a6b8825

@ -345,9 +345,13 @@ public class TagViewFragment extends TaskListFragment {
activity.runOnUiThread(new Runnable() { activity.runOnUiThread(new Runnable() {
@Override @Override
public void run() { public void run() {
reloadTagData(false); try {
refresh(); reloadTagData(false);
((TextView)taskListView.findViewById(android.R.id.empty)).setText(R.string.TLA_no_items); refresh();
((TextView)taskListView.findViewById(android.R.id.empty)).setText(R.string.TLA_no_items);
} catch (IllegalStateException e) {
// Can happen when swipe between lists is on
}
} }
}); });
} }

Loading…
Cancel
Save