[FragmentStrictMode] Detect calls to Fragment#setTargetFragment#139
[FragmentStrictMode] Detect calls to Fragment#setTargetFragment#139simonschiller wants to merge 2 commits intoandroidx:androidx-mainfrom
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
Fragment#setTargetFragmentTesting
Test: See
FragmentStrictModeTest#detectSetTargetFragmentIssues Fixed
Fixes: 153737745