mirror of
https://github.com/quik-sms/quik.git
synced 2026-11-22 21:58:53 +01:00
Fix error if http params null
This commit is contained in:
@@ -127,8 +127,8 @@ class Transaction @JvmOverloads constructor(private val context: Context, settin
|
|||||||
Pair(SmsManager.MMS_CONFIG_MAX_MESSAGE_SIZE, MmsConfig.getMaxMessageSize()))
|
Pair(SmsManager.MMS_CONFIG_MAX_MESSAGE_SIZE, MmsConfig.getMaxMessageSize()))
|
||||||
|
|
||||||
MmsConfig.getHttpParams()
|
MmsConfig.getHttpParams()
|
||||||
.takeIf { it.isNotEmpty() }
|
?.takeIf { it.isNotEmpty() }
|
||||||
.let { configOverrides.putString(SmsManager.MMS_CONFIG_HTTP_PARAMS, it) }
|
?.let { configOverrides.putString(SmsManager.MMS_CONFIG_HTTP_PARAMS, it) }
|
||||||
|
|
||||||
if (contentUri != null) {
|
if (contentUri != null) {
|
||||||
SmsManagerFactory.createSmsManager(subId).sendMultimediaMessage(context, contentUri, null, configOverrides, sentPI)
|
SmsManagerFactory.createSmsManager(subId).sendMultimediaMessage(context, contentUri, null, configOverrides, sentPI)
|
||||||
@@ -142,7 +142,7 @@ class Transaction @JvmOverloads constructor(private val context: Context, settin
|
|||||||
|
|
||||||
}
|
}
|
||||||
} catch (e: Exception) {
|
} catch (e: Exception) {
|
||||||
Timber.e(e, "error using system sending method")
|
Timber.e(e, "Error using system sending method")
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user