Minor code improvements

This commit is contained in:
Naveen 2022-06-16 19:23:59 +05:30
parent 43e19c95c1
commit aeafc7030d
2 changed files with 3 additions and 2 deletions

View file

@ -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) {