adding some crashfixes
This commit is contained in:
parent
4c3543c7e6
commit
4a57000d9a
|
@ -62,7 +62,7 @@ android {
|
|||
}
|
||||
|
||||
dependencies {
|
||||
implementation 'com.github.SimpleMobileTools:Simple-Commons:1539cc92c2'
|
||||
implementation 'com.github.SimpleMobileTools:Simple-Commons:09e6c15f70'
|
||||
implementation 'org.greenrobot:eventbus:3.2.0'
|
||||
implementation 'com.klinkerapps:android-smsmms:5.2.6'
|
||||
implementation 'com.github.tibbi:IndicatorFastScroll:4524cd0b61'
|
||||
|
|
|
@ -10,6 +10,7 @@ import com.reddit.indicatorfastscroll.FastScrollItemIndicator
|
|||
import com.simplemobiletools.commons.dialogs.RadioGroupDialog
|
||||
import com.simplemobiletools.commons.extensions.*
|
||||
import com.simplemobiletools.commons.helpers.*
|
||||
import com.simplemobiletools.commons.models.PhoneNumber
|
||||
import com.simplemobiletools.commons.models.RadioItem
|
||||
import com.simplemobiletools.commons.models.SimpleContact
|
||||
import com.simplemobiletools.smsmessenger.R
|
||||
|
@ -151,7 +152,7 @@ class NewConversationActivity : SimpleActivity() {
|
|||
}
|
||||
|
||||
RadioGroupDialog(this, items) {
|
||||
launchThreadActivity(it as String, contact.name)
|
||||
launchThreadActivity((it as PhoneNumber).normalizedNumber, contact.name)
|
||||
}
|
||||
} else {
|
||||
launchThreadActivity(phoneNumbers.first().normalizedNumber, contact.name)
|
||||
|
|
|
@ -901,9 +901,9 @@ class ThreadActivity : SimpleActivity() {
|
|||
if (participant.name == it.normalizedNumber) {
|
||||
participant.name = number
|
||||
}
|
||||
number
|
||||
PhoneNumber(number, 0, "", number)
|
||||
} else {
|
||||
it
|
||||
PhoneNumber(it.normalizedNumber, 0, "", it.normalizedNumber)
|
||||
}
|
||||
} as ArrayList<PhoneNumber>
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue