Skip to content

attendi-android v0.3.5

Choose a tag to compare

@emilianoalvarez91 emilianoalvarez91 released this 01 Sep 13:51
· 10 commits to main since this release
1e7bddc

Fixed

  • Composable Preview crashes when previewing certain UI components:
  1. VerifyAudioPermissionView
  2. AudioPermissionDeniedPermanentlyDialog (from AttendiMicrophone)
    The crashes were caused by casting LocalContext.current directly to Activity:
val activity = context as Activity

In Android Studio previews, LocalContext.current returns a BridgeContext instead of an actual Activity.
The fix uses a safe cast (as? Activity) and handles the null case, making previews render safely without affecting runtime behavior.

Full Changelog: v0.3.4...v0.3.5