Minor code improvements
This commit is contained in:
parent
43e19c95c1
commit
aeafc7030d
2 changed files with 3 additions and 2 deletions
|
|
@ -27,7 +27,7 @@ class DirectReplyReceiver : BroadcastReceiver() {
|
|||
val settings = context.getSendMessageSettings()
|
||||
if (address != null) {
|
||||
val availableSIMs = SubscriptionManager.from(context).activeSubscriptionInfoList
|
||||
if (availableSIMs?.size ?: 0 > 1) {
|
||||
if ((availableSIMs?.size ?: 0) > 1) {
|
||||
val currentSIMCardIndex = context.config.getUseSIMIdAtNumber(address)
|
||||
val wantedId = availableSIMs.getOrNull(currentSIMCardIndex)
|
||||
if (wantedId != null) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue