Create generic file binder to allow viewing any unhandled mms part type

This commit is contained in:
moezbhatti
2019-10-17 01:31:44 -04:00
parent d46193abba
commit 629e7a2d72
13 changed files with 229 additions and 60 deletions
@@ -105,6 +105,7 @@ open class Message : RealmObject() {
isSms() -> body
else -> parts
.filter { it.type == "text/plain" }
.mapNotNull { it.text }
.joinToString("\n") { text -> text }
}
@@ -28,6 +28,8 @@ open class MmsPart : RealmObject() {
@PrimaryKey var id: Long = 0
var type: String = ""
var seq: Int = -1
var name: String? = null
var text: String? = null
@LinkingObjects("parts")