mirror of
https://github.com/awfixers-stuff/OwnDroid.git
synced 2026-03-23 11:05:59 +00:00
Update README
Use Compose AlertDialog instead android.app.AlertDialog Set default affiliation id after activation The 'dev' branch will be deleted, use 'master' instead
This commit is contained in:
@@ -357,3 +357,15 @@ fun ExpandExposedTextFieldIcon(active: Boolean) {
|
||||
modifier = Modifier.rotate(degrees)
|
||||
)
|
||||
}
|
||||
|
||||
@Composable
|
||||
fun ErrorDialog(message: String?, onDismiss: () -> Unit) {
|
||||
if(!message.isNullOrEmpty()) AlertDialog(
|
||||
title = { Text(stringResource(R.string.error)) },
|
||||
text = { Text(message) },
|
||||
confirmButton = {
|
||||
TextButton(onDismiss) { Text(stringResource(R.string.confirm)) }
|
||||
},
|
||||
onDismissRequest = onDismiss
|
||||
)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user