Skip to content

Commit

Permalink
Fix error when switching to 'view in new/top'
Browse files Browse the repository at this point in the history
  • Loading branch information
mopsalarm committed Aug 15, 2017
1 parent 8104838 commit 21832f9
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -702,9 +702,9 @@ class FeedFragment : BaseFragment("FeedFragment"), FilterFragment, BackAwareFrag
}

@OnOptionsItemSelected(R.id.action_feedtype)
fun switchFeedType(feedType: FeedType? = null) {
fun switchFeedType() {
var filter = currentFilter
filter = filter.withFeedType(feedType ?: switchFeedTypeTarget(filter))
filter = filter.withFeedType(switchFeedTypeTarget(filter))
(activity as MainActionHandler).onFeedFilterSelected(filter, initialSearchViewState())
}

Expand Down

0 comments on commit 21832f9

Please sign in to comment.