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

Image on photoeditorview is lost in split-screen mode #41

Closed
ervinod opened this issue May 31, 2018 · 4 comments
Closed

Image on photoeditorview is lost in split-screen mode #41

ervinod opened this issue May 31, 2018 · 4 comments

Comments

@ervinod
Copy link

ervinod commented May 31, 2018

Hello there,
Suppose i added image from gallery and start app in split-screen mode (multi-window mode). when app enters in split screen mode image on mPhotoEditorView is lost... just black screen is showing.
I face this issue on Android Oreo 8.0
Please test from your side and help me to solve this issue....

@ervinod
Copy link
Author

ervinod commented Jun 9, 2018

Hello there...
Have you checked this issue....

@burhanrashid52
Copy link
Owner

Hii, Sorry for the late response. I am looking into it

@burhanrashid52
Copy link
Owner

burhanrashid52 commented Jun 11, 2018

Its happing due to activity is recreated every time when going in multi-window mode. Currently, the library does not handle any lifecycle or configuration changes. You have to handle all these changes where your activity resides.
To start with you need to disable the cycle event by handling configuration manually.
This great article will help you
https://medium.com/google-developers/5-tips-for-preparing-for-multi-window-in-android-n-7bed803dda64

@burhanrashid52
Copy link
Owner

burhanrashid52 commented Jun 11, 2018

On a side Note even if you handle config changes than there will be an issue of paints positions and size of added emoji and stickers.
I recommend you to not use multi-window for this library. Because it does not make sense to edit an image in a smaller window

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