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