Rename rememberMemorized to rememberInVM
This commit is contained in:
1 parent
3f6abd6380
commit
1dd0eeb2ed
2 files changed
+3
-3
No files matched your search
@@ -61,7 +61,7 @@ import com.hippo.ehviewer.ui.main.EhPreviewItemPlaceholder
|
||||
import com.hippo.ehviewer.ui.navToReader
|
||||
import com.hippo.ehviewer.ui.setMD3Content
|
||||
import com.hippo.ehviewer.ui.tools.rememberDialogState
|
||||
import com.hippo.ehviewer.ui.tools.rememberMemorized
|
||||
import com.hippo.ehviewer.ui.tools.rememberInVM
|
||||
import com.hippo.ehviewer.util.getParcelableCompat
|
||||
import kotlinx.coroutines.Dispatchers
|
||||
import kotlinx.coroutines.launch
|
||||
@@ -100,7 +100,7 @@ class GalleryPreviewScreen : Fragment() {
|
||||
result.first.first
|
||||
}
|
||||
|
||||
val data = rememberMemorized {
|
||||
val data = rememberInVM {
|
||||
val previewPagesMap = galleryDetail.previewList.associateBy { it.position } as MutableMap
|
||||
Pager(PagingConfig(pageSize = pgSize, initialLoadSize = pgSize, jumpThreshold = 2 * pgSize)) {
|
||||
object : PagingSource<Int, GalleryPreview>() {
|
||||
|
||||
@@ -13,7 +13,7 @@ class StateMapViewModel : ViewModel() {
|
||||
}
|
||||
|
||||
@Composable
|
||||
fun <T : Any> rememberMemorized(
|
||||
fun <T : Any> rememberInVM(
|
||||
vararg inputs: Any?,
|
||||
init: ViewModel.() -> T,
|
||||
): T {
|
||||
|
||||
Reference in new issue
Block a user