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

[FragmentStrictMode] Detect calls to Fragment#setRetainInstance #140

Conversation

simonschiller
Copy link
Contributor

Proposed Changes

  • Detect calls to Fragment#setRetainInstance

Testing

Test: See FragmentStrictModeTest#detectSetRetainInstance

Issues Fixed

Fixes: 153737954

@simonschiller
Copy link
Contributor Author

Similarly to #139, we could only detect calls to Fragment#setRetainInstance, or we could broaden the scope and also detect calls to Fragment#getRetainInstance. What are your opinions on this?

@dlam dlam requested a review from jbw0033 March 15, 2021 19:19
@simonschiller simonschiller deleted the feature/set-retain-instance branch March 23, 2021 15:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
4 participants