mirror of
https://github.com/Docile-Alligator/Infinity-For-Reddit
synced 2024-07-08 20:06:20 +00:00
Fix suggested sort enum parsing error.
This commit is contained in:
parent
e88c2e957b
commit
533b45c01a
|
@ -1437,7 +1437,12 @@ public class ViewPostDetailFragment extends Fragment implements FragmentCommunic
|
|||
mRespectSubredditRecommendedSortType = false;
|
||||
sortTypeType = loadSortType();
|
||||
} else {
|
||||
try {
|
||||
sortTypeType = SortType.Type.valueOf(suggestedCommentSort.toUpperCase(Locale.US));
|
||||
} catch (IllegalArgumentException e) {
|
||||
e.printStackTrace();
|
||||
sortTypeType = loadSortType();
|
||||
}
|
||||
}
|
||||
activity.setTitle(sortTypeType.fullName);
|
||||
ViewPostDetailFragment.this.sortType = sortTypeType;
|
||||
|
|
Loading…
Reference in New Issue
Block a user