We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b5201f6 commit cc294bfCopy full SHA for cc294bf
android/app/src/main/java/com/httpsms/MainActivity.kt
@@ -108,6 +108,11 @@ class MainActivity : AppCompatActivity() {
108
val requestPermissionLauncher = registerForActivityResult(ActivityResultContracts.RequestMultiplePermissions()) { permissions ->
109
permissions.entries.forEach {
110
Timber.d("${it.key} = ${it.value}")
111
+ if (it.key == Manifest.permission.READ_CALL_LOG && !it.value) {
112
+ Timber.w("disabling incoming call events since for SIM1 and SIM2")
113
+ Settings.setIncomingCallEventsEnabled(context, Constants.SIM1, false)
114
+ Settings.setIncomingCallEventsEnabled(context, Constants.SIM2, false)
115
+ }
116
}
117
118
0 commit comments