Skip to content

Commit

Permalink
Merge pull request #6132 from Bnyro/master
Browse files Browse the repository at this point in the history
feat: remember selected channel group across app restarts
  • Loading branch information
Bnyro authored Jun 14, 2024
2 parents e471fea + a692f8d commit 8e7999c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -139,4 +139,5 @@ object PreferenceKeys {
const val LAST_WATCHED_FEED_TIME = "last_watched_feed_time"
const val AUTH_PREF_FILE = "auth"
const val IMAGE_PROXY_URL = "image_proxy_url"
const val SELECTED_CHANNEL_GROUP = "selected_channel_group"
}
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,10 @@ class SubscriptionsFragment : DynamicLayoutManagerFragment() {
private val viewModel: SubscriptionsViewModel by activityViewModels()
private val playerModel: PlayerViewModel by activityViewModels()
private val channelGroupsModel: EditChannelGroupsModel by activityViewModels()
private var selectedFilterGroup = 0
private var selectedFilterGroup
set(value) = PreferenceHelper.putInt(PreferenceKeys.SELECTED_CHANNEL_GROUP, value)
get() = PreferenceHelper.getInt(PreferenceKeys.SELECTED_CHANNEL_GROUP, 0)

private var isCurrentTabSubChannels = false
private var isAppBarFullyExpanded = true

Expand Down

0 comments on commit 8e7999c

Please sign in to comment.