Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

up moko permissions version 0.15.0 -> 0.18.0 #80

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from

Conversation

ZiXOps
Copy link

@ZiXOps ZiXOps commented Apr 19, 2024

for now MediaPickerController interface changed it bind method for pass FragmentActivity for new request moko permissions approach

@@ -21,8 +20,10 @@ actual fun BindMediaPickerEffect(mediaPickerController: MediaPickerController) {
val context: Context = LocalContext.current

LaunchedEffect(mediaPickerController, lifecycleOwner, context) {
val fragmentManager: FragmentManager = (context as FragmentActivity).supportFragmentManager
val activity: FragmentActivity = checkNotNull(context as? FragmentActivity) {
Copy link
Member

Choose a reason for hiding this comment

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

can we use ComponentActivity here?

Copy link
Author

Choose a reason for hiding this comment

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

not yet. for now we use fragmentManager for create and find FilePickerFragment, ImagePickerFragment and MediaPickerFragment and perhaps we can use ComponentActivity after change request result approach

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.

None yet

2 participants