RxImagePicker icon indicating copy to clipboard operation
RxImagePicker copied to clipboard

Can not retrieve photo if taking a photo in landscape

Open MilkBiscuit opened this issue 9 years ago • 1 comments

Precondition Remove android:configChanges line in AndroidManifest.xml of sample project.

Steps to reproduce

  1. Use portrait mode, Go to Main activity
  2. Click CAMERA floating action button
  3. Rotate the phone to landscape mode
  4. 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.

MilkBiscuit avatar Dec 09 '16 04:12 MilkBiscuit

I think the bug also wipe out all the saved state in the activity started the camera intent

holyman2k avatar Nov 21 '17 01:11 holyman2k