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

retainInstance is deprecated #108

Open
khalid64927 opened this issue Apr 4, 2024 · 0 comments
Open

retainInstance is deprecated #108

khalid64927 opened this issue Apr 4, 2024 · 0 comments

Comments

@khalid64927
Copy link

khalid64927 commented Apr 4, 2024

Issue Summary:

Currently, the Permission Lib relies on ResolveFragment to maintain its lifecycle in alignment with the application's lifecycle, enabled by a deprecated flag. Although ResolveFragment itself is not deprecated, the flag it utilizes for lifecycle retention has been marked as deprecated by Google (source).

Proposed Solution:
Google

Given the deprecation of the flag used by ResolveFragment, it is advisable to consider alternative methods for lifecycle management. One viable approach is to integrate ViewModel with the associated Fragment. This would ensure the persistence of state throughout the application's lifecycle, offering a robust solution in light of the deprecation.

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

No branches or pull requests

1 participant