mirror of
https://github.com/quik-sms/quik.git
synced 2026-11-18 03:48:52 +01:00
add delay send mms. add group send to individual recipients - sms and mms. add immediate show messages in convo, not wait for sent. new qktransaction that replaces android/smsmms transaction with mods for quik. lots of code cleanups and removing superfluous code. some bug fixes.
This commit is contained in:
@@ -22,7 +22,6 @@ import android.database.Cursor
|
||||
import android.provider.Telephony.*
|
||||
import dev.octoshrimpy.quik.model.Message
|
||||
import timber.log.Timber
|
||||
import java.util.*
|
||||
|
||||
interface CursorToMessage : Mapper<Pair<Cursor, CursorToMessage.MessageColumns>, Message> {
|
||||
|
||||
@@ -55,13 +54,13 @@ interface CursorToMessage : Mapper<Pair<Cursor, CursorToMessage.MessageColumns>,
|
||||
val mmsMessageBox by lazy { getColumnIndex(Mms.MESSAGE_BOX) }
|
||||
val mmsDeliveryReport by lazy { getColumnIndex(Mms.DELIVERY_REPORT) }
|
||||
val mmsReadReport by lazy { getColumnIndex(Mms.READ_REPORT) }
|
||||
val mmsErrorType by lazy { getColumnIndex(MmsSms.PendingMessages.ERROR_TYPE) }
|
||||
// val mmsErrorType by lazy { getColumnIndex(MmsSms.PendingMessages.ERROR_TYPE) }
|
||||
val mmsStatus by lazy { getColumnIndex(Mms.STATUS) }
|
||||
|
||||
private fun getColumnIndex(columnsName: String) = try {
|
||||
cursor.getColumnIndexOrThrow(columnsName)
|
||||
} catch (e: Exception) {
|
||||
Timber.e("Couldn't find column \'$columnsName\' in ${Arrays.toString(cursor.columnNames)}")
|
||||
Timber.e("Couldn't find column \'$columnsName\' in ${cursor.columnNames.contentToString()}")
|
||||
-1
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user