fix illegalargumentexception in feed/cats sort triggered for some reason
when comparator changes in prefs
This commit is contained in:
parent
2af78be74b
commit
6a5ff27dce
@ -326,7 +326,11 @@ public class FeedCategoriesFragment extends Fragment implements OnItemClickListe
|
||||
}
|
||||
}
|
||||
|
||||
try {
|
||||
Collections.sort(m_cats, cmp);
|
||||
} catch (IllegalArgumentException e) {
|
||||
e.printStackTrace();
|
||||
}
|
||||
try {
|
||||
m_adapter.notifyDataSetChanged();
|
||||
} catch (NullPointerException e) {
|
||||
|
@ -542,7 +542,12 @@ public class FeedsFragment extends Fragment implements OnItemClickListener, OnSh
|
||||
}
|
||||
}
|
||||
|
||||
try {
|
||||
Collections.sort(m_feeds, cmp);
|
||||
} catch (IllegalArgumentException e) {
|
||||
// sort order got changed in prefs or something
|
||||
e.printStackTrace();
|
||||
}
|
||||
|
||||
try {
|
||||
m_adapter.notifyDataSetChanged();
|
||||
|
Loading…
Reference in New Issue
Block a user