Open
Description
Precondition
Remove android:configChanges line in AndroidManifest.xml of sample project.
Steps to reproduce
- Use portrait mode, Go to Main activity
- Click CAMERA floating action button
- Rotate the phone to landscape mode
- Take a photo and click Yes
Expected result:
4. The photo was attached into Main activity
Actual result:
4. No photo attached
Did some debug work, the order of method getting invoked is
Click YES in camera -> onImagePicked of MainActivity -> camera exiting... -> onCreate() of MainActivity.
RxImagePicker.with(this).getActiveSubscription().subscribe(this::onImagePicked) was hit in onCreate, but after that, onImagePicked() was not hit again.
Metadata
Metadata
Assignees
Labels
No labels