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 9f3fec9 commit c6b0849Copy full SHA for c6b0849
1 file changed
app/src/main/java/dev/bluehouse/enablevolte/Moder.kt
@@ -287,7 +287,13 @@ class SubscriptionModer(
287
fun restartIMSRegistration() {
288
val telephony = this.loadCachedInterface { telephony }
289
val sub = this.loadCachedInterface { sub }
290
- telephony.resetIms(sub.getSlotIndex(this.subscriptionId))
+ try {
291
+ telephony.resetIms(sub.getSlotIndex(this.subscriptionId))
292
+ } catch (e: NoSuchMethodError) {
293
+ telephony.disableIms(sub.getSlotIndex(this.subscriptionId))
294
+ telephony.enableIms(sub.getSlotIndex(this.subscriptionId))
295
+ throw e
296
+ }
297
}
298
299
fun getStringValue(key: String): String? {
0 commit comments