Direct to Android settings when Default Phone app is disabled
This commit is contained in:
@ -1031,6 +1031,11 @@ private fun SettingsContent(
|
||||
)
|
||||
}
|
||||
else {
|
||||
try {
|
||||
dialerRoleRequest.launch(Intent(Settings.ACTION_MANAGE_DEFAULT_APPS_SETTINGS))
|
||||
} catch (e: ActivityNotFoundException) {
|
||||
Log.e(TAG, "ActivityNotFound exception: ${e.message}")
|
||||
}
|
||||
BaresipService.instance?.addMobileUserAgent()
|
||||
restart = true
|
||||
}
|
||||
@ -1100,6 +1105,7 @@ private fun SettingsContent(
|
||||
) { _ ->
|
||||
val isHeld = roleManager.isRoleHeld(RoleManager.ROLE_SMS)
|
||||
viewModel.defaultMessaging.value = isHeld
|
||||
restart = true
|
||||
}
|
||||
Switch(
|
||||
checked = defaultMessaging,
|
||||
|
||||
Reference in New Issue
Block a user