@ -68,6 +68,7 @@ import androidx.compose.ui.graphics.toArgb
import androidx.compose.ui.layout.layout
import androidx.compose.ui.layout.layout
import androidx.compose.ui.platform.LocalContext
import androidx.compose.ui.platform.LocalContext
import androidx.compose.ui.platform.LocalDensity
import androidx.compose.ui.platform.LocalDensity
import androidx.compose.ui.platform.LocalInspectionMode
import androidx.compose.ui.platform.testTag
import androidx.compose.ui.platform.testTag
import androidx.compose.ui.res.painterResource
import androidx.compose.ui.res.painterResource
import androidx.compose.ui.res.stringResource
import androidx.compose.ui.res.stringResource
@ -406,6 +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
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 (
android . Manifest . permission . POST _NOTIFICATIONS ,
android . Manifest . permission . POST _NOTIFICATIONS ,