mirror of
https://github.com/libre-tube/LibreTube.git
synced 2024-12-13 13:50:30 +05:30
Merge pull request #6132 from Bnyro/master
feat: remember selected channel group across app restarts
This commit is contained in:
commit
8e7999c080
@ -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"
|
||||
}
|
||||
|
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user