You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Feb 8, 2022. It is now read-only.
I found a trivial bug. rx and coroutine packages are affected by this.
Scenario
A Activity starts B Activity.
Rotate the screen in B Activity.
Tap the back button in B Activity.
A Activity will lost the activity result from B Activity.
Activitys are recreated when the screen rotates as we know. Starting another Activity is also the case. If B Activity has been rotated, then A Activity get recreated.(It's deferred until B Activity is finished) In this case, A Activity calling startActivityForResult() never get callback for onActivityResult(). (It would be called in another instance of A Activity).
I attach a video that actually reproduces the bug.
I found a trivial bug.
rxandcoroutinepackages are affected by this.Scenario
Activitystarts BActivity.Activity.Activity.Activitywill lost the activity result from BActivity.Activitys are recreated when the screen rotates as we know. Starting anotherActivityis also the case. If BActivityhas been rotated, then AActivityget recreated.(It's deferred until BActivityis finished) In this case, AActivitycallingstartActivityForResult()never get callback foronActivityResult(). (It would be called in another instance of AActivity).I attach a video that actually reproduces the bug.
device-2021-01-15-021348.mp4