Fix crash when switching to some sort types on the community search page

Closes #283
This commit is contained in:
Bazsalanszky 2024-08-29 14:12:15 +02:00
parent 468bae4019
commit 32c75ff87c

View File

@ -239,7 +239,7 @@ public class SubredditListingFragment extends Fragment implements FragmentCommun
}
public void changeSortType(SortType sortType) {
mSortTypeSharedPreferences.edit().putString(SharedPreferencesUtils.SORT_TYPE_SEARCH_SUBREDDIT, sortType.getType().name()).apply();
mSortTypeSharedPreferences.edit().putString(SharedPreferencesUtils.SORT_TYPE_SEARCH_SUBREDDIT, sortType.getType().value).apply();
mSubredditListingViewModel.changeSortType(sortType);
this.sortType = sortType;
}