-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Fix#2761: Loading of different image on Peer Review on rotation #2762
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
Conversation
neslihanturan
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks but this method is not suggested if it is not the only option. The solution with this method https://developer.android.com/guide/topics/resources/runtime-changes#RetainingAnObject is what we need
Codecov Report
@@ Coverage Diff @@
## master #2762 +/- ##
=========================================
- Coverage 2.83% 2.83% -0.01%
=========================================
Files 268 268
Lines 12774 12782 +8
Branches 1129 1131 +2
=========================================
Hits 362 362
- Misses 12387 12395 +8
Partials 25 25
Continue to review full report at Codecov.
|
|
@neslihanturan So should I create a new ViewModel class and use it for retaining views? |
|
No it is for carrying large objects. You should use onSaveInstanceState() |
|
@neslihanturan I have done the changes and have updated the PR. |
neslihanturan
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Code seems alright, will merge after tested:)
|
This passes from my tests but there is a point I recognized, and want to wait for review from another person too. Since how we don't start from the first question each time? |
|
Hi @Sp2710 , closing this one since the Review Activity implementation is changed since then and a suitable solution is available. Thanks for your contribution. |
Description (required)
Fixes #2761
Tests performed (required)
Tested ProdDebug on Motorola Moto G5 plus with API level 24.