Open in SingleMedia mode when coming from the timeline
This commit is contained in:
parent
7df65b0350
commit
ca5c06f20b
1 changed files with 3 additions and 3 deletions
|
|
@ -53,10 +53,10 @@ class MediaViewerNode @AssistedInject constructor(
|
|||
private val presenter = presenterFactory.create(
|
||||
inputs = inputs,
|
||||
navigator = this,
|
||||
mediaGalleryDataSource = if (inputs.eventId != null) {
|
||||
timelineMediaGalleryDataSource
|
||||
} else {
|
||||
mediaGalleryDataSource = if (inputs.mode == MediaViewerEntryPoint.MediaViewerMode.SingleMedia) {
|
||||
SingleMediaGalleryDataSource.createFrom(inputs)
|
||||
} else {
|
||||
timelineMediaGalleryDataSource
|
||||
},
|
||||
)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue