mirror of
https://github.com/AllanWang/Frost-for-Facebook.git
synced 2024-11-10 04:52:38 +01:00
Fix most recents in main activity (#269)
This commit is contained in:
parent
fa00faa72c
commit
cfa645abd8
@ -30,18 +30,22 @@ class WebFragment : Fragment() {
|
||||
const val REQUEST_TEXT_ZOOM = 17
|
||||
const val REQUEST_REFRESH = 99
|
||||
|
||||
operator fun invoke(data: FbItem, position: Int) = WebFragment().withArguments(
|
||||
ARG_URL to data.url,
|
||||
ARG_POSITION to position,
|
||||
ARG_URL_ENUM to when (data) {
|
||||
//If is feed, check if sorting method is specified
|
||||
FbItem.FEED -> when (FeedSort(Prefs.feedSort)) {
|
||||
FeedSort.DEFAULT -> data
|
||||
FeedSort.MOST_RECENT -> FbItem.FEED_MOST_RECENT
|
||||
FeedSort.TOP -> FbItem.FEED_TOP_STORIES
|
||||
}
|
||||
else -> data
|
||||
})
|
||||
operator fun invoke(data: FbItem, position: Int) = WebFragment().apply {
|
||||
val d = when (data) {
|
||||
//If is feed, check if sorting method is specified
|
||||
FbItem.FEED -> when (FeedSort(Prefs.feedSort)) {
|
||||
FeedSort.DEFAULT -> data
|
||||
FeedSort.MOST_RECENT -> FbItem.FEED_MOST_RECENT
|
||||
FeedSort.TOP -> FbItem.FEED_TOP_STORIES
|
||||
}
|
||||
else -> data
|
||||
}
|
||||
withArguments(
|
||||
ARG_URL to d.url,
|
||||
ARG_POSITION to position,
|
||||
ARG_URL_ENUM to d
|
||||
)
|
||||
}
|
||||
}
|
||||
|
||||
// val refresh: SwipeRefreshLayout by lazy { frostWebView.refresh }
|
||||
|
@ -12,7 +12,7 @@
|
||||
|
||||
<version title="Beta Updates"/>
|
||||
<item text="Prevent image loading from trimming too many characters" />
|
||||
<item text="" />
|
||||
<item text="Fix most recent mode for news feed" />
|
||||
<item text="" />
|
||||
<item text="" />
|
||||
<item text="" />
|
||||
|
@ -1,6 +1,9 @@
|
||||
# Changelog
|
||||
|
||||
## Beta Updates
|
||||
* Prevent image loading from trimming too many characters
|
||||
|
||||
## v1.4.12
|
||||
* Fix new messages not showing
|
||||
* Fix theme for sharing and new messages
|
||||
* Prevent search bar settings from disabling itself if auto suggestions fail
|
||||
|
Loading…
Reference in New Issue
Block a user