Skip to content

Conversation

@codedsun
Copy link
Contributor

Fixed #2318

Changes: was getting empty text in on saved instance state, handled that

Screenshots of the change:

@auto-label auto-label bot added the fix label Oct 30, 2019
@codedsun
Copy link
Contributor Author

@iamareebjamal Check this

@codedsun
Copy link
Contributor Author

@iamareebjamal Please review

@iamareebjamal
Copy link
Member

Peer review

@codedsun
Copy link
Contributor Author

@iamareebjamal means?

@iamareebjamal
Copy link
Member

Get PR approved by peers first

@codedsun
Copy link
Contributor Author

codedsun commented Oct 31, 2019

@iamareebjamal None of them is available in this project except you.. Okay will tag

@yashk2000 Please review

He's unavailable due to exams I think

@yashk2000
Copy link
Member

@iamareebjamal None of them is available in this project except you.. Okay will tag

@yashk2000 Please review

He's unavailable due to exams I think

I'll be getting a short break tomorrow. I'll test it then. Sorry for the inconvenience.

@codedsun
Copy link
Contributor Author

codedsun commented Nov 1, 2019

@yashk2000 Please check!

@codedsun
Copy link
Contributor Author

codedsun commented Nov 2, 2019

@yashk2000 Please check

@codedsun
Copy link
Contributor Author

codedsun commented Nov 3, 2019

ezgif com-video-to-gif

@yashk2000 Check

@codedsun
Copy link
Contributor Author

codedsun commented Nov 3, 2019

@yashk2000 Inputs please

Copy link
Member

@yashk2000 yashk2000 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seems fine. Could you please upload a gif?

@codedsun
Copy link
Contributor Author

codedsun commented Nov 3, 2019

@yashk2000 Doing it.

@yashk2000
Copy link
Member

If you change the crop settings in one mode, rotate the device and change the settings again and try to save the picture it works?

@codedsun
Copy link
Contributor Author

codedsun commented Nov 3, 2019 via email

@yashk2000
Copy link
Member

  1. Enter the crop mode.
  2. Rotate the device.
  3. Change the crop settings to anything other than 1:1. Change the default crop square that appears.
  4. Rotate the device again.
  5. Check if changes are retained and saved on clicking save.

@codedsun
Copy link
Contributor Author

codedsun commented Nov 4, 2019

@yashk2000 They are retained but the editImageActivity has bugs which causes of loading of image and setting the fragments again. So the first time when the configuration change occurs,

  1. Activity is recreated in the activity get data function is called which runs an aysnc task of loading the image, meanwhile the Crop fragment sets all the data in the fragment

Now after the result of the loadImage(get Data function), the fragments are created again. Hence the changes are lost

@yashk2000
Copy link
Member

Ok. You can open a new issue for the other problem. That can be fixed in a separate pr.

@iamareebjamal iamareebjamal merged commit 8464460 into fossasia:development Nov 6, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

App crashes on changing orientation while cropping

3 participants