mirror of
https://github.com/signalapp/Signal-Android.git
synced 2026-04-22 09:49:30 +01:00
Video Sending Redesign
This commit is contained in:
committed by
Alex Hart
parent
276e253fdf
commit
c53abe0941
@@ -20,5 +20,9 @@ class FileMediaInput(private val file: File) : MediaInput {
|
||||
return extractor
|
||||
}
|
||||
|
||||
override fun hasSameInput(other: MediaInput): Boolean {
|
||||
return other is FileMediaInput && other.file == this.file
|
||||
}
|
||||
|
||||
override fun close() {}
|
||||
}
|
||||
|
||||
@@ -21,5 +21,9 @@ class UriMediaInput(private val context: Context, private val uri: Uri) : MediaI
|
||||
return extractor
|
||||
}
|
||||
|
||||
override fun close() {}
|
||||
override fun hasSameInput(other: MediaInput): Boolean {
|
||||
return other is UriMediaInput && other.uri == this.uri
|
||||
}
|
||||
|
||||
override fun close() = Unit
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user