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() {
@Override
public void run() {
reloadTagData(false);
refresh();
((TextView)taskListView.findViewById(android.R.id.empty)).setText(R.string.TLA_no_items);
try {
reloadTagData(false);
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