Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can not retrieve photo if taking a photo in landscape #35

Open
MilkBiscuit opened this issue Dec 9, 2016 · 1 comment
Open

Can not retrieve photo if taking a photo in landscape #35

MilkBiscuit opened this issue Dec 9, 2016 · 1 comment

Comments

@MilkBiscuit
Copy link

MilkBiscuit commented Dec 9, 2016

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.

@holyman2k
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants