Skip to content

Commit 5246db4

Browse files
authored
Fix some earlier broken scopes (#92)
The ThemeWrapper needs to be public and the PayoneSepaMandateFragment should be open like the others, too.
1 parent 5969006 commit 5246db4

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

ui-toolkit/src/main/kotlin/io/snabble/sdk/dynamicview/theme/Theme.kt renamed to ui-toolkit/src/main/kotlin/io/snabble/sdk/dynamicview/theme/ThemeWrapper.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ import io.snabble.sdk.dynamicview.theme.properties.applyElevation
1616
import io.snabble.sdk.dynamicview.theme.properties.applyPadding
1717

1818
@Composable
19-
internal fun ThemeWrapper(content: @Composable () -> Unit) {
19+
fun ThemeWrapper(content: @Composable () -> Unit) {
2020
val (colorScheme, typography, shapes) = if (!LocalInspectionMode.current) {
2121
createMdc3Theme(
2222
context = LocalContext.current,

ui/src/main/java/io/snabble/sdk/ui/payment/payone/sepa/mandate/PayoneSepaMandateFragment.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,14 +15,14 @@ import io.snabble.sdk.ui.payment.payone.sepa.mandate.viewmodel.SepaMandateViewMo
1515
import io.snabble.sdk.ui.utils.ThemeWrapper
1616
import io.snabble.sdk.utils.Logger
1717

18-
internal class PayoneSepaMandateFragment : DialogFragment() {
18+
open class PayoneSepaMandateFragment : DialogFragment() {
1919

2020
private val viewModel: SepaMandateViewModel by viewModels()
2121

2222
override fun onCreateView(
2323
inflater: LayoutInflater,
2424
container: ViewGroup?,
25-
savedInstanceState: Bundle?
25+
savedInstanceState: Bundle?,
2626
): View = ComposeView(inflater.context).apply {
2727
setViewCompositionStrategy(ViewCompositionStrategy.DisposeOnViewTreeLifecycleDestroyed)
2828

0 commit comments

Comments
 (0)