Skip to content

Conversation

@davidz25
Copy link
Contributor

@davidz25 davidz25 commented Jan 8, 2026

It should be possible to use multipaz-compose in Android apps using Android resources and not KMP resources. As such, we shouldn't be passing around things like DrawableResource since that's a KMP resource construct. Change CredentialManagerPresentmentActivity, MdocNfcPresentmentActivity, and UriSchemePresentmentActivity so their settings classes take a @Composable () -> Painter lambda instead.

Fixes #1459.

Test: Manually tested.

It should be possible to use multipaz-compose in Android apps using
Android resources and not KMP resources. As such, we shouldn't be
passing around things like `DrawableResource` since that's a KMP
resource construct. Change `CredentialManagerPresentmentActivity`,
`MdocNfcPresentmentActivity`, and `UriSchemePresentmentActivity` so
their settings classes take a `@Composable () -> Painter` lambda
instead.

Fixes #1459.

Test: Manually tested.
Signed-off-by: David Zeuthen <zeuthen@google.com>
Copy link
Contributor

@koukarine koukarine left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good idea. LGTM.

@davidz25 davidz25 merged commit 4a21952 into main Jan 8, 2026
3 checks passed
@davidz25 davidz25 deleted the fix-1459 branch January 8, 2026 19:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Alter Settings data class to take a Painter instead of a DrawableResource

3 participants