adding some crashfixes

This commit is contained in:
tibbi
2022-02-06 23:40:42 +01:00
parent 4c3543c7e6
commit 4a57000d9a
3 changed files with 5 additions and 4 deletions

View File

@@ -62,7 +62,7 @@ android {
} }
dependencies { dependencies {
implementation 'com.github.SimpleMobileTools:Simple-Commons:1539cc92c2' implementation 'com.github.SimpleMobileTools:Simple-Commons:09e6c15f70'
implementation 'org.greenrobot:eventbus:3.2.0' implementation 'org.greenrobot:eventbus:3.2.0'
implementation 'com.klinkerapps:android-smsmms:5.2.6' implementation 'com.klinkerapps:android-smsmms:5.2.6'
implementation 'com.github.tibbi:IndicatorFastScroll:4524cd0b61' implementation 'com.github.tibbi:IndicatorFastScroll:4524cd0b61'

View File

@@ -10,6 +10,7 @@ import com.reddit.indicatorfastscroll.FastScrollItemIndicator
import com.simplemobiletools.commons.dialogs.RadioGroupDialog import com.simplemobiletools.commons.dialogs.RadioGroupDialog
import com.simplemobiletools.commons.extensions.* import com.simplemobiletools.commons.extensions.*
import com.simplemobiletools.commons.helpers.* import com.simplemobiletools.commons.helpers.*
import com.simplemobiletools.commons.models.PhoneNumber
import com.simplemobiletools.commons.models.RadioItem import com.simplemobiletools.commons.models.RadioItem
import com.simplemobiletools.commons.models.SimpleContact import com.simplemobiletools.commons.models.SimpleContact
import com.simplemobiletools.smsmessenger.R import com.simplemobiletools.smsmessenger.R
@@ -151,7 +152,7 @@ class NewConversationActivity : SimpleActivity() {
} }
RadioGroupDialog(this, items) { RadioGroupDialog(this, items) {
launchThreadActivity(it as String, contact.name) launchThreadActivity((it as PhoneNumber).normalizedNumber, contact.name)
} }
} else { } else {
launchThreadActivity(phoneNumbers.first().normalizedNumber, contact.name) launchThreadActivity(phoneNumbers.first().normalizedNumber, contact.name)

View File

@@ -901,9 +901,9 @@ class ThreadActivity : SimpleActivity() {
if (participant.name == it.normalizedNumber) { if (participant.name == it.normalizedNumber) {
participant.name = number participant.name = number
} }
number PhoneNumber(number, 0, "", number)
} else { } else {
it PhoneNumber(it.normalizedNumber, 0, "", it.normalizedNumber)
} }
} as ArrayList<PhoneNumber> } as ArrayList<PhoneNumber>
} }