Don't store data field in MmsPart unnecessarily

This commit is contained in:
Moez Bhatti
2018-01-09 16:46:54 -05:00
parent 808db1ccb2
commit e655a5f178
2 changed files with 2 additions and 2 deletions
@@ -21,7 +21,8 @@ class CursorToPart @Inject constructor(private val context: Context) : Mapper<Cu
id = from.getLong(from.getColumnIndexOrThrow(Telephony.Mms.Part._ID))
messageId = from.getLong(from.getColumnIndexOrThrow(Telephony.Mms.Part.MSG_ID))
type = from.getString(from.getColumnIndexOrThrow(Telephony.Mms.Part.CONTENT_TYPE))
data = from.getString(from.getColumnIndexOrThrow(Telephony.Mms.Part._DATA))
val data = from.getString(from.getColumnIndexOrThrow(Telephony.Mms.Part._DATA))
when {
isImage() -> image = ContentUris.withAppendedId(CONTENT_URI, id).toString()
@@ -26,7 +26,6 @@ open class MmsPart : RealmObject() {
@PrimaryKey var id: Long = 0
var messageId: Long = 0
var type: String = ""
var data: String? = null
var text: String? = null
var image: String? = null