apply some configs at sending message from anywhere
This commit is contained in:
parent
6349d18c62
commit
9052c5183d
4 changed files with 15 additions and 17 deletions
|
|
@ -22,6 +22,7 @@ import android.provider.Telephony.*
|
|||
import android.text.TextUtils
|
||||
import androidx.core.app.NotificationCompat
|
||||
import androidx.core.app.RemoteInput
|
||||
import com.klinker.android.send_message.Settings
|
||||
import com.simplemobiletools.commons.extensions.*
|
||||
import com.simplemobiletools.commons.helpers.*
|
||||
import com.simplemobiletools.commons.models.PhoneNumber
|
||||
|
|
@ -958,3 +959,12 @@ fun Context.getFileSizeFromUri(uri: Uri): Long {
|
|||
return FILE_SIZE_NONE
|
||||
}
|
||||
}
|
||||
|
||||
fun Context.getSendMessageSettings(): Settings {
|
||||
val settings = Settings()
|
||||
settings.useSystemSending = true
|
||||
settings.deliveryReports = config.enableDeliveryReports
|
||||
settings.sendLongAsMms = config.sendLongMessageMMS
|
||||
settings.sendLongAsMmsAfter = 1
|
||||
return settings
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue