Add ability to attach and send photos

This commit is contained in:
Moez Bhatti
2018-01-12 18:46:47 -05:00
parent 432f71ee95
commit 161f673914
11 changed files with 230 additions and 42 deletions
@@ -25,6 +25,7 @@ import android.provider.Telephony.*
import common.util.Keys
import data.model.Message
import timber.log.Timber
import java.util.*
import javax.inject.Inject
class CursorToMessage @Inject constructor(
@@ -169,7 +170,7 @@ class CursorToMessage @Inject constructor(
private fun getColumnIndex(columnsName: String) = try {
cursor.getColumnIndexOrThrow(columnsName)
} catch (e: Exception) {
Timber.w(e)
Timber.e("Couldn't find column \'$columnsName\' in ${Arrays.toString(cursor.columnNames)}")
-1
}
}