remove unused cursor
This commit is contained in:
@ -52,7 +52,6 @@ class LibraryViewModel @Inject constructor(
|
|||||||
) : ViewModel(), SavedItemViewModel {
|
) : ViewModel(), SavedItemViewModel {
|
||||||
|
|
||||||
private val contentRequestChannel = Channel<String>(capacity = Channel.UNLIMITED)
|
private val contentRequestChannel = Channel<String>(capacity = Channel.UNLIMITED)
|
||||||
private var cursor: String? = null
|
|
||||||
private var librarySearchCursor: String? = null
|
private var librarySearchCursor: String? = null
|
||||||
|
|
||||||
var snackbarMessage by mutableStateOf<String?>(null)
|
var snackbarMessage by mutableStateOf<String?>(null)
|
||||||
@ -136,7 +135,6 @@ class LibraryViewModel @Inject constructor(
|
|||||||
}
|
}
|
||||||
|
|
||||||
fun refresh() {
|
fun refresh() {
|
||||||
cursor = null
|
|
||||||
librarySearchCursor = null
|
librarySearchCursor = null
|
||||||
isRefreshing = true
|
isRefreshing = true
|
||||||
load()
|
load()
|
||||||
@ -155,7 +153,6 @@ class LibraryViewModel @Inject constructor(
|
|||||||
fun initialLoad() {
|
fun initialLoad() {
|
||||||
if (getLastSyncTime() == null) {
|
if (getLastSyncTime() == null) {
|
||||||
hasLoadedInitialFilters = false
|
hasLoadedInitialFilters = false
|
||||||
cursor = null
|
|
||||||
librarySearchCursor = null
|
librarySearchCursor = null
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user