Call FragmentStrictMode listeners on main thread of host#131
Call FragmentStrictMode listeners on main thread of host#131simonschiller wants to merge 5 commits intoandroidx:androidx-mainfrom
Conversation
|
Please note that I moved the |
Instead of doing this, can we make I definitely prefer it in a separate package if possible. |
| /** @hide */ | ||
| @NonNull | ||
| FragmentHostCallback<?> getHost() { | ||
| @RestrictTo(RestrictTo.Scope.LIBRARY) |
There was a problem hiding this comment.
Nit here and elsewhere: Always add the @RestrictTo annotation as the topmost annotation (i.e., directly below the Javadoc comment where the @hide is so that they are visually next to each other in the code).
There was a problem hiding this comment.
Makes sense - fixed in 4c0f698
Proposed Changes
Testing
Test:
FragmentStrictModeTest#listenerCalledOnCorrectThreadIssues Fixed
Fixes: 153737341