Update SettingsDialog.kt

pull/1760/head
Abhinav Srivastava 7 days ago committed by GitHub
parent c3ac3290c6
commit 20e568e98b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -20,7 +20,6 @@ package com.google.samples.apps.nowinandroid.feature.settings
import android.content.Intent import android.content.Intent
import androidx.compose.animation.AnimatedVisibility import androidx.compose.animation.AnimatedVisibility
import androidx.compose.foundation.clickable
import androidx.compose.foundation.layout.Arrangement import androidx.compose.foundation.layout.Arrangement
import androidx.compose.foundation.layout.Column import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.ColumnScope import androidx.compose.foundation.layout.ColumnScope
@ -41,6 +40,7 @@ import androidx.compose.material3.HorizontalDivider
import androidx.compose.material3.MaterialTheme import androidx.compose.material3.MaterialTheme
import androidx.compose.material3.RadioButton import androidx.compose.material3.RadioButton
import androidx.compose.material3.Text import androidx.compose.material3.Text
import androidx.compose.material3.TextButton
import androidx.compose.runtime.Composable import androidx.compose.runtime.Composable
import androidx.compose.runtime.getValue import androidx.compose.runtime.getValue
import androidx.compose.ui.Alignment import androidx.compose.ui.Alignment
@ -141,14 +141,13 @@ fun SettingsDialog(
TrackScreenViewEvent(screenName = "Settings") TrackScreenViewEvent(screenName = "Settings")
}, },
confirmButton = { confirmButton = {
Text( TextButton(onClick = onDismiss) {
text = stringResource(string.feature_settings_dismiss_dialog_button_text), Text(
style = MaterialTheme.typography.labelLarge, text = stringResource(string.feature_settings_dismiss_dialog_button_text),
color = MaterialTheme.colorScheme.primary, style = MaterialTheme.typography.labelLarge,
modifier = Modifier color = MaterialTheme.colorScheme.primary,
.padding(horizontal = 8.dp) )
.clickable { onDismiss() }, }
)
}, },
) )
} }

Loading…
Cancel
Save