mirror of
https://github.com/jellyfin/jellyfin-androidtv.git
synced 2026-10-26 16:45:23 +00:00
Fix PictureViewerFragment using activityViewModel
This commit is contained in:
1 parent
76695a0829
commit
61324816d7
2 files changed
+3
-2
No files matched your search
@@ -131,7 +131,7 @@ public class ItemLauncher {
|
||||
|
||||
case PHOTO:
|
||||
navigationRepository.navigate(Destinations.INSTANCE.pictureViewer(
|
||||
rowItem.getBaseItem().getId(),
|
||||
baseItem.getId(),
|
||||
false,
|
||||
adapter.getSortBy(),
|
||||
adapter.getSortOrder()
|
||||
|
||||
@@ -30,6 +30,7 @@ import org.jellyfin.sdk.model.constant.ItemSortBy
|
||||
import org.jellyfin.sdk.model.serializer.toUUIDOrNull
|
||||
import org.koin.android.ext.android.inject
|
||||
import org.koin.androidx.viewmodel.ext.android.activityViewModel
|
||||
import org.koin.androidx.viewmodel.ext.android.viewModel
|
||||
import timber.log.Timber
|
||||
import kotlin.time.Duration.Companion.seconds
|
||||
|
||||
@@ -43,7 +44,7 @@ class PictureViewerFragment : Fragment(), View.OnKeyListener {
|
||||
}
|
||||
|
||||
private val screensaverViewModel by activityViewModel<ScreensaverViewModel>()
|
||||
private val pictureViewerViewModel by activityViewModel<PictureViewerViewModel>()
|
||||
private val pictureViewerViewModel by viewModel<PictureViewerViewModel>()
|
||||
private val api by inject<ApiClient>()
|
||||
private var _binding: FragmentPictureViewerBinding? = null
|
||||
private val binding get() = _binding!!
|
||||
|
||||
Reference in new issue
Block a user