[FragmentStrictMode] Detect calls to Fragment#setTargetFragment - #139
[FragmentStrictMode] Detect calls to Fragment#setTargetFragment#139simonschiller wants to merge 2 commits into
Conversation
|
Right now, this check only detects calls to |
|
We should do all of the methods. The long term goal for strict mode is to remove any APIs that cause violations. So if you have strict mode on and your app has no problems, then when you upgrade to say Fragment 2.0 where all the APIs that cause violations have been removed, it should be like a no-op. So although, calling the |
|
Makes sense, I adapted the PR (as well as #140). |
5d2d215 to
89c830c
Compare
## Proposed Changes - Detect calls to `Fragment#setTargetFragment` ## Testing Test: See `FragmentStrictModeTest#detectSetTargetFragment` ## Issues Fixed Fixes: 153737745 This is an imported pull request from androidx#139. Resolves JetBrains#139 Github-Pr-Head-Sha: 89c830c GitOrigin-RevId: e73f51c Change-Id: I3066e87ed7cfa2bda19089979c722f1efe4103cf
Proposed Changes
Fragment#setTargetFragmentTesting
Test: See
FragmentStrictModeTest#detectSetTargetFragmentIssues Fixed
Fixes: 153737745