Skip to content

Commit

Permalink
refactor: Make dialog functions private
Browse files Browse the repository at this point in the history
  • Loading branch information
Ushie committed Jul 28, 2024
1 parent fdbe911 commit d633681
Showing 1 changed file with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -364,7 +364,7 @@ fun PatchesSelectorScreen(
}

@Composable
fun SelectionWarningDialog(onDismiss: () -> Unit) {
private fun SelectionWarningDialog(onDismiss: () -> Unit) {
SafeguardDialog(
onDismiss = onDismiss,
title = R.string.warning,
Expand All @@ -373,7 +373,7 @@ fun SelectionWarningDialog(onDismiss: () -> Unit) {
}

@Composable
fun UniversalPatchWarningDialog(
private fun UniversalPatchWarningDialog(
onCancel: () -> Unit,
onConfirm: () -> Unit
) {
Expand Down Expand Up @@ -405,7 +405,7 @@ fun UniversalPatchWarningDialog(
}

@Composable
fun PatchItem(
private fun PatchItem(
patch: PatchInfo,
onOptionsDialog: () -> Unit,
selected: Boolean,
Expand Down Expand Up @@ -435,7 +435,7 @@ fun PatchItem(
)

@Composable
fun ListHeader(
private fun ListHeader(
title: String,
onHelpClick: (() -> Unit)? = null
) {
Expand All @@ -461,7 +461,7 @@ fun ListHeader(
}

@Composable
fun UnsupportedPatchesDialog(
private fun UnsupportedPatchesDialog(
appVersion: String,
onDismissRequest: () -> Unit
) = AlertDialog(
Expand All @@ -486,7 +486,7 @@ fun UnsupportedPatchesDialog(
)

@Composable
fun UnsupportedPatchDialog(
private fun UnsupportedPatchDialog(
appVersion: String,
supportedVersions: List<String>,
onDismissRequest: () -> Unit
Expand Down Expand Up @@ -514,7 +514,7 @@ fun UnsupportedPatchDialog(

@OptIn(ExperimentalMaterial3Api::class)
@Composable
fun OptionsDialog(
private fun OptionsDialog(
patch: PatchInfo,
values: Map<String, Any?>?,
reset: () -> Unit,
Expand Down

0 comments on commit d633681

Please sign in to comment.