Minor code styling improvement
This commit is contained in:
@ -1012,14 +1012,13 @@ private fun SettingsContent(
|
|||||||
if (!roleManager.isRoleHeld(RoleManager.ROLE_DIALER))
|
if (!roleManager.isRoleHeld(RoleManager.ROLE_DIALER))
|
||||||
dialerRoleRequest.launch(roleManager.createRequestRoleIntent(RoleManager.ROLE_DIALER))
|
dialerRoleRequest.launch(roleManager.createRequestRoleIntent(RoleManager.ROLE_DIALER))
|
||||||
}
|
}
|
||||||
else {
|
else
|
||||||
try {
|
try {
|
||||||
dialerRoleRequest.launch(Intent("android.settings.MANAGE_DEFAULT_APPS_SETTINGS"))
|
dialerRoleRequest.launch(Intent("android.settings.MANAGE_DEFAULT_APPS_SETTINGS"))
|
||||||
} catch (e: ActivityNotFoundException) {
|
} catch (e: ActivityNotFoundException) {
|
||||||
Log.e(TAG, "ActivityNotFound exception: ${e.message}")
|
Log.e(TAG, "ActivityNotFound exception: ${e.message}")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user