Skip to content

[FragmentStrictMode] Detect calls to Fragment#setRetainInstance#140

Closed
simonschiller wants to merge 2 commits intoandroidx:androidx-mainfrom
simonschiller:feature/set-retain-instance
Closed

[FragmentStrictMode] Detect calls to Fragment#setRetainInstance#140
simonschiller wants to merge 2 commits intoandroidx:androidx-mainfrom
simonschiller:feature/set-retain-instance

Conversation

@simonschiller
Copy link
Copy Markdown
Contributor

Proposed Changes

  • Detect calls to Fragment#setRetainInstance

Testing

Test: See FragmentStrictModeTest#detectSetRetainInstance

Issues Fixed

Fixes: 153737954

@simonschiller
Copy link
Copy Markdown
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

Development

Successfully merging this pull request may close these issues.

4 participants