mirror of https://github.com/readrops/Readrops.git
Reorder some files
This commit is contained in:
parent
783276a27b
commit
a5f16e089c
|
@ -6,7 +6,7 @@ import androidx.compose.runtime.Stable
|
||||||
import androidx.core.net.toFile
|
import androidx.core.net.toFile
|
||||||
import cafe.adriel.voyager.core.model.screenModelScope
|
import cafe.adriel.voyager.core.model.screenModelScope
|
||||||
import com.readrops.api.opml.OPMLParser
|
import com.readrops.api.opml.OPMLParser
|
||||||
import com.readrops.app.base.TabScreenModel
|
import com.readrops.app.home.TabScreenModel
|
||||||
import com.readrops.app.repositories.ErrorResult
|
import com.readrops.app.repositories.ErrorResult
|
||||||
import com.readrops.app.repositories.GetFoldersWithFeeds
|
import com.readrops.app.repositories.GetFoldersWithFeeds
|
||||||
import com.readrops.app.util.components.TextFieldError
|
import com.readrops.app.util.components.TextFieldError
|
||||||
|
|
|
@ -9,7 +9,7 @@ import com.readrops.api.services.Credentials
|
||||||
import com.readrops.api.utils.AuthInterceptor
|
import com.readrops.api.utils.AuthInterceptor
|
||||||
import com.readrops.api.utils.HtmlParser
|
import com.readrops.api.utils.HtmlParser
|
||||||
import com.readrops.app.R
|
import com.readrops.app.R
|
||||||
import com.readrops.app.base.TabScreenModel
|
import com.readrops.app.home.TabScreenModel
|
||||||
import com.readrops.app.repositories.BaseRepository
|
import com.readrops.app.repositories.BaseRepository
|
||||||
import com.readrops.app.repositories.GetFoldersWithFeeds
|
import com.readrops.app.repositories.GetFoldersWithFeeds
|
||||||
import com.readrops.app.util.components.TextFieldError
|
import com.readrops.app.util.components.TextFieldError
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
package com.readrops.app.base
|
package com.readrops.app.home
|
||||||
|
|
||||||
import android.content.SharedPreferences
|
import android.content.SharedPreferences
|
||||||
import cafe.adriel.voyager.core.model.ScreenModel
|
import cafe.adriel.voyager.core.model.ScreenModel
|
||||||
|
@ -20,7 +20,7 @@ import org.koin.core.component.get
|
||||||
import org.koin.core.parameter.parametersOf
|
import org.koin.core.parameter.parametersOf
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Custom ViewModel for Tab screens handling account change
|
* Custom screenModel for Tab screens handling account change
|
||||||
*/
|
*/
|
||||||
abstract class TabScreenModel(
|
abstract class TabScreenModel(
|
||||||
private val database: Database,
|
private val database: Database,
|
||||||
|
@ -62,7 +62,6 @@ abstract class TabScreenModel(
|
||||||
currentAccount = account
|
currentAccount = account
|
||||||
repository = get(parameters = { parametersOf(account) })
|
repository = get(parameters = { parametersOf(account) })
|
||||||
|
|
||||||
|
|
||||||
_accountEvent.emit(account)
|
_accountEvent.emit(account)
|
||||||
}
|
}
|
||||||
}
|
}
|
|
@ -9,7 +9,7 @@ import androidx.paging.PagingData
|
||||||
import androidx.paging.cachedIn
|
import androidx.paging.cachedIn
|
||||||
import androidx.work.workDataOf
|
import androidx.work.workDataOf
|
||||||
import cafe.adriel.voyager.core.model.screenModelScope
|
import cafe.adriel.voyager.core.model.screenModelScope
|
||||||
import com.readrops.app.base.TabScreenModel
|
import com.readrops.app.home.TabScreenModel
|
||||||
import com.readrops.app.repositories.ErrorResult
|
import com.readrops.app.repositories.ErrorResult
|
||||||
import com.readrops.app.repositories.GetFoldersWithFeeds
|
import com.readrops.app.repositories.GetFoldersWithFeeds
|
||||||
import com.readrops.app.sync.SyncWorker
|
import com.readrops.app.sync.SyncWorker
|
||||||
|
|
Loading…
Reference in New Issue