mirror of
https://github.com/SimpleMobileTools/Simple-SMS-Messenger.git
synced 2025-06-05 21:49:22 +02:00
adding some crashfixes
This commit is contained in:
@@ -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'
|
||||||
|
@@ -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)
|
||||||
|
@@ -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>
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user