Fixes after rebase
This commit is contained in:
parent
2fd9eaf17f
commit
8f09fd62d9
117 changed files with 310 additions and 295 deletions
|
|
@ -19,7 +19,7 @@ import io.element.android.libraries.mediaviewer.impl.gallery.root.MediaGalleryRo
|
|||
|
||||
@ContributesBinding(AppScope::class)
|
||||
@Inject
|
||||
class DefaultMediaGalleryEntryPoint() : MediaGalleryEntryPoint {
|
||||
class DefaultMediaGalleryEntryPoint : MediaGalleryEntryPoint {
|
||||
override fun nodeBuilder(parentNode: Node, buildContext: BuildContext): MediaGalleryEntryPoint.NodeBuilder {
|
||||
val plugins = ArrayList<Plugin>()
|
||||
|
||||
|
|
|
|||
|
|
@ -23,7 +23,7 @@ import io.element.android.libraries.mediaviewer.impl.viewer.MediaViewerNode
|
|||
|
||||
@ContributesBinding(AppScope::class)
|
||||
@Inject
|
||||
class DefaultMediaViewerEntryPoint() : MediaViewerEntryPoint {
|
||||
class DefaultMediaViewerEntryPoint : MediaViewerEntryPoint {
|
||||
override fun nodeBuilder(parentNode: Node, buildContext: BuildContext): MediaViewerEntryPoint.NodeBuilder {
|
||||
val plugins = ArrayList<Plugin>()
|
||||
|
||||
|
|
|
|||
|
|
@ -13,7 +13,7 @@ import io.element.android.libraries.mediaviewer.impl.model.MediaItem
|
|||
import kotlinx.collections.immutable.toImmutableList
|
||||
|
||||
@Inject
|
||||
class MediaItemsPostProcessor() {
|
||||
class MediaItemsPostProcessor {
|
||||
fun process(
|
||||
mediaItems: List<MediaItem>,
|
||||
): GroupedMediaItems {
|
||||
|
|
|
|||
|
|
@ -15,7 +15,7 @@ import io.element.android.libraries.mediaviewer.api.util.FileExtensionExtractor
|
|||
|
||||
@ContributesBinding(AppScope::class)
|
||||
@Inject
|
||||
class FileExtensionExtractorWithValidation() : FileExtensionExtractor {
|
||||
class FileExtensionExtractorWithValidation : FileExtensionExtractor {
|
||||
override fun extractFromName(name: String): String {
|
||||
val fileExtension = name.substringAfterLast('.', "")
|
||||
// Makes sure the extension is known by the system, otherwise default to binary extension.
|
||||
|
|
|
|||
|
|
@ -36,7 +36,7 @@ import io.element.android.libraries.mediaviewer.impl.model.eventId
|
|||
* (keyOffset = -1)
|
||||
*/
|
||||
@Inject
|
||||
class PagerKeysHandler() {
|
||||
class PagerKeysHandler {
|
||||
private data class Data(
|
||||
val mediaItems: List<MediaItem>,
|
||||
val keyOffset: Long,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue