|
|
@ -407,7 +407,8 @@ fun TopicIcon(
|
|
|
|
@Composable
|
|
|
|
@Composable
|
|
|
|
@OptIn(ExperimentalPermissionsApi::class)
|
|
|
|
@OptIn(ExperimentalPermissionsApi::class)
|
|
|
|
private fun NotificationPermissionEffect() {
|
|
|
|
private fun NotificationPermissionEffect() {
|
|
|
|
// Permissions should be called from in an Activity Context, which is not present in previews
|
|
|
|
// Permissions should be called from in an Activity Context, which is not present
|
|
|
|
|
|
|
|
// in previews
|
|
|
|
if (LocalInspectionMode.current) return
|
|
|
|
if (LocalInspectionMode.current) return
|
|
|
|
if (VERSION.SDK_INT < VERSION_CODES.TIRAMISU) return
|
|
|
|
if (VERSION.SDK_INT < VERSION_CODES.TIRAMISU) return
|
|
|
|
val notificationsPermissionState = rememberPermissionState(
|
|
|
|
val notificationsPermissionState = rememberPermissionState(
|
|
|
|