Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ import io.snabble.sdk.dynamicview.theme.properties.applyElevation
import io.snabble.sdk.dynamicview.theme.properties.applyPadding

@Composable
internal fun ThemeWrapper(content: @Composable () -> Unit) {
fun ThemeWrapper(content: @Composable () -> Unit) {
val (colorScheme, typography, shapes) = if (!LocalInspectionMode.current) {
createMdc3Theme(
context = LocalContext.current,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,14 @@ import io.snabble.sdk.ui.payment.payone.sepa.mandate.viewmodel.SepaMandateViewMo
import io.snabble.sdk.ui.utils.ThemeWrapper
import io.snabble.sdk.utils.Logger

internal class PayoneSepaMandateFragment : DialogFragment() {
open class PayoneSepaMandateFragment : DialogFragment() {

private val viewModel: SepaMandateViewModel by viewModels()

override fun onCreateView(
inflater: LayoutInflater,
container: ViewGroup?,
savedInstanceState: Bundle?
savedInstanceState: Bundle?,
): View = ComposeView(inflater.context).apply {
setViewCompositionStrategy(ViewCompositionStrategy.DisposeOnViewTreeLifecycleDestroyed)

Expand Down