Open in SingleMedia mode when coming from the timeline
This commit is contained in:
committed by
Benoit Marty
parent
7397dde87d
commit
3e9528fa93
@@ -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
|
||||
},
|
||||
)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user