Upgrade ktlint and add twitter compose rules.

This commit is contained in:
Alex Hart
2023-02-06 11:04:40 -04:00
committed by Greyson Parrelli
parent 52e9b31554
commit 605289aca4
174 changed files with 574 additions and 373 deletions

View File

@@ -228,9 +228,9 @@ abstract class SmsExportService : Service() {
onMessageExportSucceeded(sms)
true
}, onFailure = {
onMessageExportFailed(sms)
false
})
onMessageExportFailed(sms)
false
})
}
private fun exportMms(smsExportState: SmsExportState, mms: ExportableMessage.Mms<*>): Boolean {

View File

@@ -35,7 +35,7 @@ object ExportMmsRecipientsUseCase {
val addrValues = contentValuesOf(
Telephony.Mms.Addr.ADDRESS to recipient,
Telephony.Mms.Addr.CHARSET to CharacterSets.DEFAULT_CHARSET,
Telephony.Mms.Addr.TYPE to if (recipient == sender) PduHeaders.FROM else PduHeaders.TO,
Telephony.Mms.Addr.TYPE to if (recipient == sender) PduHeaders.FROM else PduHeaders.TO
)
context.contentResolver.insert(addrUri, addrValues)