| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent d0482a4 commit 8fe0a3f
5 files changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -26,13 +26,14 @@ internal class SentReceiver : BroadcastReceiver() { | |||
| 26 | 26 | SmsManager.RESULT_ERROR_NO_SERVICE -> handleMessageFailed(context, intent.getStringExtra(Constants.KEY_MESSAGE_ID), "NO_SERVICE") | |
| 27 | 27 | SmsManager.RESULT_ERROR_NULL_PDU -> handleMessageFailed(context, intent.getStringExtra(Constants.KEY_MESSAGE_ID), "NULL_PDU") | |
| 28 | 28 | SmsManager.RESULT_ERROR_RADIO_OFF -> handleMessageFailed(context, intent.getStringExtra(Constants.KEY_MESSAGE_ID), "RADIO_OFF") | |
| 29 | - else -> handleMessageFailed(context, intent.getStringExtra(Constants.KEY_MESSAGE_ID), "UNKNOWN") | ||
| 29 | + SmsManager.RESULT_ERROR_LIMIT_EXCEEDED -> handleMessageFailed(context, intent.getStringExtra(Constants.KEY_MESSAGE_ID), "LIMIT_EXCEEDED") | ||
| 30 | + else -> handleMessageFailed(context, intent.getStringExtra(Constants.KEY_MESSAGE_ID), "UNKNOWN:${resultCode}") | ||
| 30 | 31 | } | |
| 31 | 32 | } | |
| 32 | 33 | ||
| 33 | 34 | private fun cleanupPduFile(context: Context, messageId: String?) { | |
| 34 | 35 | if (messageId == null) return | |
| 35 | - | ||
| 36 | + | ||
| 36 | 37 | try { | |
| 37 | 38 | val baseMessageId = messageId.substringBefore(".") | |
| 38 | 39 | val mmsDir = File(context.cacheDir, "mms_attachments") | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -62,7 +62,7 @@ class SmsManagerService { | |||
| 62 | 62 | } | |
| 63 | 63 | ||
| 64 | 64 | Timber.d("active subscription info size: [${localSubscriptionManager.activeSubscriptionInfoList!!.size}]") | |
| 65 | - val subscriptionId = if (sim == Constants.SIM1 && localSubscriptionManager.activeSubscriptionInfoList!!.size > 0) { | ||
| 65 | + val subscriptionId = if (sim == Constants.SIM1 && localSubscriptionManager.activeSubscriptionInfoList!!.isNotEmpty()) { | ||
| 66 | 66 | localSubscriptionManager.activeSubscriptionInfoList!![0].subscriptionId | |
| 67 | 67 | } else if (sim == Constants.SIM2 && localSubscriptionManager.activeSubscriptionInfoList!!.size > 1) { | |
| 68 | 68 | localSubscriptionManager.activeSubscriptionInfoList!![1].subscriptionId | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -10,8 +10,8 @@ buildscript { | |||
| 10 | 10 | } | |
| 11 | 11 | ||
| 12 | 12 | plugins { | |
| 13 | - id("com.android.application") version "9.1.1" apply false | ||
| 14 | - id("com.android.library") version "9.1.1" apply false | ||
| 13 | + id("com.android.application") version "9.2.1" apply false | ||
| 14 | + id("com.android.library") version "9.2.1" apply false | ||
| 15 | 15 | } | |
| 16 | 16 | ||
| 17 | 17 | tasks.register<Delete>("clean") { | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1,6 +1,6 @@ | |||
| 1 | 1 | #Thu Jun 23 15:32:32 EEST 2022 | |
| 2 | 2 | distributionBase=GRADLE_USER_HOME | |
| 3 | - distributionUrl=https\://services.gradle.org/distributions/gradle-9.3.1-bin.zip | ||
| 3 | + distributionUrl=https\://services.gradle.org/distributions/gradle-9.4.1-bin.zip | ||
| 4 | 4 | distributionPath=wrapper/dists | |
| 5 | 5 | zipStorePath=wrapper/dists | |
| 6 | 6 | zipStoreBase=GRADLE_USER_HOME | |
| Back | FazBrowse Home | New Git URL |
0 commit comments