mirror of
https://gitlab.futo.org/videostreaming/grayjay.git
synced 2025-04-20 03:24:50 +00:00
Properly hide refresh layout loader.
This commit is contained in:
parent
081ae1dd88
commit
f49ecf1159
2 changed files with 7 additions and 0 deletions
|
@ -23,6 +23,7 @@ import com.futo.platformplayer.states.AnnouncementType
|
|||
import com.futo.platformplayer.states.StateAnnouncement
|
||||
import com.futo.platformplayer.states.StateMeta
|
||||
import com.futo.platformplayer.states.StatePlatform
|
||||
import com.futo.platformplayer.states.StateSubscriptions
|
||||
import com.futo.platformplayer.views.announcements.AnnouncementView
|
||||
import com.futo.platformplayer.views.FeedStyle
|
||||
import com.futo.platformplayer.views.adapters.ContentPreviewViewHolder
|
||||
|
@ -134,6 +135,8 @@ class HomeFragment : MainFragment() {
|
|||
} else {
|
||||
setLoading(false);
|
||||
}
|
||||
|
||||
finishRefreshLayoutLoader();
|
||||
}
|
||||
|
||||
override fun reload() {
|
||||
|
|
|
@ -130,6 +130,10 @@ class SubscriptionsFeedFragment : MainFragment() {
|
|||
};
|
||||
}
|
||||
}
|
||||
|
||||
if (!StateSubscriptions.instance.isGlobalUpdating) {
|
||||
finishRefreshLayoutLoader();
|
||||
}
|
||||
}
|
||||
|
||||
override fun cleanup() {
|
||||
|
|
Loading…
Add table
Reference in a new issue