diff --git a/commons/src/main/kotlin/com/simplemobiletools/commons/dialogs/OpenDeviceSettingsDialog.kt b/commons/src/main/kotlin/com/simplemobiletools/commons/dialogs/OpenDeviceSettingsDialog.kt index 2427d1bda..e0539846e 100644 --- a/commons/src/main/kotlin/com/simplemobiletools/commons/dialogs/OpenDeviceSettingsDialog.kt +++ b/commons/src/main/kotlin/com/simplemobiletools/commons/dialogs/OpenDeviceSettingsDialog.kt @@ -11,6 +11,9 @@ import androidx.compose.ui.unit.sp import com.simplemobiletools.commons.R import com.simplemobiletools.commons.activities.BaseSimpleActivity import com.simplemobiletools.commons.compose.alert_dialog.AlertDialogState +import com.simplemobiletools.commons.compose.alert_dialog.rememberAlertDialogState +import com.simplemobiletools.commons.compose.extensions.MyDevices +import com.simplemobiletools.commons.compose.theme.AppThemeSurface import com.simplemobiletools.commons.databinding.DialogOpenDeviceSettingsBinding import com.simplemobiletools.commons.extensions.getAlertDialogBuilder import com.simplemobiletools.commons.extensions.openDeviceSettings @@ -72,3 +75,14 @@ fun OpenDeviceSettingsAlertDialog( }, ) } + +@Composable +@MyDevices +fun OpenDeviceSettingsAlertDialogPreview() { + AppThemeSurface { + OpenDeviceSettingsAlertDialog( + alertDialogState = rememberAlertDialogState(), + message = "Test dialog" + ) + } +}