Skip to content

Conversation

@yashk2000
Copy link
Member

@yashk2000 yashk2000 commented Jun 24, 2019

Fixed #2702
Fixed #2789

Changes: All edits in an image are stored when orientation change happens.

GIF:

ezgif com-video-to-gif (2)

@auto-label auto-label bot added the fix label Jun 24, 2019
@yashk2000
Copy link
Member Author

@iamareebjamal @abishekvashok @mariobehling please review.

@yashk2000
Copy link
Member Author

@adityastic please review.

@mariobehling
Copy link
Member

mariobehling commented Jun 24, 2019

Please provide a gif that is slower and a gif that does not use pictures of another app as example. Phimpme is a photo app mainly. Could you please use photos to avoid confusion of users by using screenshots of apps to showcase the app?

@yashk2000
Copy link
Member Author

@mariobehling sure. Just a minute.

@yashk2000
Copy link
Member Author

@mariobehling gif updated.

Choose a reason for hiding this comment

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

Dont. This is a memory leak

Choose a reason for hiding this comment

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

dont make anything static, save this also in the savedState

Choose a reason for hiding this comment

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

same, static variable will not be garbage collected

Choose a reason for hiding this comment

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

same

Choose a reason for hiding this comment

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

even here xD

Copy link
Member Author

Choose a reason for hiding this comment

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

I'll leave this one. This one wasn't done by me. It's been there from the beginning.

Choose a reason for hiding this comment

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

Ok, No worries

Choose a reason for hiding this comment

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

same

Choose a reason for hiding this comment

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

.

Copy link
Member Author

Choose a reason for hiding this comment

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

Cannot avoid this one. I need to use the variable in other classes to retain state.

Copy link

@adityastic adityastic Jun 25, 2019

Choose a reason for hiding this comment

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

you can retain the variable in this view class itself

Copy link
Member Author

Choose a reason for hiding this comment

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

Tried that. The app crashed. When I reverted, it worked.

Choose a reason for hiding this comment

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

.

Choose a reason for hiding this comment

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

.

Choose a reason for hiding this comment

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

.

@yashk2000
Copy link
Member Author

@adityastic done. I've only kept static in places where it was really needed. Rest have been removed.

@yashk2000
Copy link
Member Author

@abishekvashok @iamareebjamal @mariobehling please review and merge.

@yashk2000
Copy link
Member Author

@abishekvashok @iamareebjamal @mariobehling please merge.

@abishekvashok abishekvashok merged commit 56b87d2 into fossasia:development Jun 26, 2019
@abishekvashok
Copy link
Member

Thanks! Great job!

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.

Edits in image not saved on orientation change. Content of stickers removed when changing the orientation

4 participants