Skip to content

Commit 3530b74

Browse files
committed
Rename button to bottomContent
1 parent 76e7a25 commit 3530b74

2 files changed

Lines changed: 9 additions & 9 deletions

File tree

design/api/current.api

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -138,8 +138,8 @@ package com.urlaunched.android.design.ui.downloadingprogressdialog {
138138
}
139139

140140
public final class DownloadingProgressDialogKt {
141-
method @androidx.compose.runtime.Composable public static void BaseDownloadingProgressDialog(optional androidx.compose.ui.Modifier modifier, @com.composables.core.androidx.annotation.FloatRange(from=0.0, to=1.0) float progress, optional String? progressText, optional com.urlaunched.android.design.ui.downloadingprogressdialog.models.ProgressTextStyle progressTextStyle, optional com.urlaunched.android.design.ui.downloadingprogressdialog.models.ProgressBarStyle progressBarStyle, optional kotlin.jvm.functions.Function0<kotlin.Unit> onDismissRequest, optional long dialogContainerColor, optional androidx.compose.ui.graphics.Shape dialogContainerShape, optional androidx.compose.foundation.layout.PaddingValues contentPadding, optional androidx.compose.ui.window.DialogProperties dialogProperties, optional kotlin.jvm.functions.Function1<? super androidx.compose.foundation.layout.ColumnScope,kotlin.Unit>? title, optional kotlin.jvm.functions.Function1<? super androidx.compose.foundation.layout.ColumnScope,kotlin.Unit>? description, optional kotlin.jvm.functions.Function1<? super androidx.compose.foundation.layout.BoxScope,kotlin.Unit>? supportingText, optional kotlin.jvm.functions.Function1<? super androidx.compose.foundation.layout.ColumnScope,kotlin.Unit>? button);
142-
method @androidx.compose.runtime.Composable public static void DownloadingProgressDialog(optional androidx.compose.ui.Modifier modifier, @com.composables.core.androidx.annotation.FloatRange(from=0.0, to=1.0) float progress, optional String? progressText, optional com.urlaunched.android.design.ui.downloadingprogressdialog.models.ProgressTextStyle progressTextStyle, optional com.urlaunched.android.design.ui.downloadingprogressdialog.models.ProgressBarStyle progressBarStyle, optional long dialogContainerColor, optional kotlin.jvm.functions.Function0<kotlin.Unit> onDismissRequest, optional androidx.compose.ui.graphics.Shape dialogContainerShape, optional androidx.compose.foundation.layout.PaddingValues contentPadding, optional androidx.compose.ui.window.DialogProperties dialogProperties, optional kotlin.jvm.functions.Function1<? super androidx.compose.foundation.layout.ColumnScope,kotlin.Unit>? title, optional kotlin.jvm.functions.Function1<? super androidx.compose.foundation.layout.ColumnScope,kotlin.Unit>? description, optional kotlin.jvm.functions.Function1<? super androidx.compose.foundation.layout.BoxScope,kotlin.Unit>? supportingText, optional kotlin.jvm.functions.Function1<? super androidx.compose.foundation.layout.ColumnScope,kotlin.Unit>? button);
141+
method @androidx.compose.runtime.Composable public static void BaseDownloadingProgressDialog(optional androidx.compose.ui.Modifier modifier, @com.composables.core.androidx.annotation.FloatRange(from=0.0, to=1.0) float progress, optional String? progressText, optional com.urlaunched.android.design.ui.downloadingprogressdialog.models.ProgressTextStyle progressTextStyle, optional com.urlaunched.android.design.ui.downloadingprogressdialog.models.ProgressBarStyle progressBarStyle, optional kotlin.jvm.functions.Function0<kotlin.Unit> onDismissRequest, optional long dialogContainerColor, optional androidx.compose.ui.graphics.Shape dialogContainerShape, optional androidx.compose.foundation.layout.PaddingValues contentPadding, optional androidx.compose.ui.window.DialogProperties dialogProperties, optional kotlin.jvm.functions.Function1<? super androidx.compose.foundation.layout.ColumnScope,kotlin.Unit>? title, optional kotlin.jvm.functions.Function1<? super androidx.compose.foundation.layout.ColumnScope,kotlin.Unit>? description, optional kotlin.jvm.functions.Function1<? super androidx.compose.foundation.layout.BoxScope,kotlin.Unit>? supportingText, optional kotlin.jvm.functions.Function1<? super androidx.compose.foundation.layout.ColumnScope,kotlin.Unit>? bottomContent);
142+
method @androidx.compose.runtime.Composable public static void DownloadingProgressDialog(optional androidx.compose.ui.Modifier modifier, @com.composables.core.androidx.annotation.FloatRange(from=0.0, to=1.0) float progress, optional String? progressText, optional com.urlaunched.android.design.ui.downloadingprogressdialog.models.ProgressTextStyle progressTextStyle, optional com.urlaunched.android.design.ui.downloadingprogressdialog.models.ProgressBarStyle progressBarStyle, optional long dialogContainerColor, optional kotlin.jvm.functions.Function0<kotlin.Unit> onDismissRequest, optional androidx.compose.ui.graphics.Shape dialogContainerShape, optional androidx.compose.foundation.layout.PaddingValues contentPadding, optional androidx.compose.ui.window.DialogProperties dialogProperties, optional kotlin.jvm.functions.Function1<? super androidx.compose.foundation.layout.ColumnScope,kotlin.Unit>? title, optional kotlin.jvm.functions.Function1<? super androidx.compose.foundation.layout.ColumnScope,kotlin.Unit>? description, optional kotlin.jvm.functions.Function1<? super androidx.compose.foundation.layout.BoxScope,kotlin.Unit>? supportingText, optional kotlin.jvm.functions.Function1<? super androidx.compose.foundation.layout.ColumnScope,kotlin.Unit>? bottomContent);
143143
}
144144

145145
}

design/src/main/java/com/urlaunched/android/design/ui/downloadingprogressdialog/DownloadingProgressDialog.kt

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ fun DownloadingProgressDialog(
4646
title: (@Composable ColumnScope.() -> Unit)? = null,
4747
description: (@Composable ColumnScope.() -> Unit)? = null,
4848
supportingText: (@Composable BoxScope.() -> Unit)? = null,
49-
button: (@Composable ColumnScope.() -> Unit)? = null
49+
bottomContent: (@Composable ColumnScope.() -> Unit)? = null
5050
) {
5151
BaseDownloadingProgressDialog(
5252
progress = progress,
@@ -74,15 +74,15 @@ fun DownloadingProgressDialog(
7474
}
7575
},
7676
supportingText = supportingText,
77-
button = button?.let { buttonContent ->
77+
bottomContent = bottomContent?.let { bottomContent ->
7878
@Composable {
7979
Column(
8080
modifier = Modifier.fillMaxWidth(),
8181
horizontalAlignment = Alignment.End
8282
) {
8383
Spacer(modifier = Modifier.height(Dimens.spacingLarge))
8484

85-
buttonContent()
85+
bottomContent()
8686
}
8787
}
8888
}
@@ -106,7 +106,7 @@ fun BaseDownloadingProgressDialog(
106106
title: (@Composable ColumnScope.() -> Unit)? = null,
107107
description: (@Composable ColumnScope.() -> Unit)? = null,
108108
supportingText: (@Composable BoxScope.() -> Unit)? = null,
109-
button: (@Composable ColumnScope.() -> Unit)? = null
109+
bottomContent: (@Composable ColumnScope.() -> Unit)? = null
110110
) {
111111
BasicAlertDialog(
112112
modifier = modifier,
@@ -138,7 +138,7 @@ fun BaseDownloadingProgressDialog(
138138
supportingText = supportingText
139139
)
140140

141-
button?.invoke(this@Column)
141+
bottomContent?.invoke(this@Column)
142142
}
143143
}
144144
)
@@ -178,7 +178,7 @@ private fun BaseDownloadingProgressDialogPreview() {
178178
}
179179
}
180180
},
181-
button = {
181+
bottomContent = {
182182
TextButton(
183183
onClick = {}
184184
) {
@@ -222,7 +222,7 @@ private fun DownloadingProgressDialogPreview() {
222222
}
223223
}
224224
},
225-
button = {
225+
bottomContent = {
226226
TextButton(
227227
onClick = {}
228228
) {

0 commit comments

Comments
 (0)