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
Fixes #3879 #4283 Other pictures flickers when a media is selected from contributions list #4340
Conversation
Codecov Report
@@ Coverage Diff @@
## master #4340 +/- ##
=========================================
Coverage 10.22% 10.22%
Complexity 469 469
=========================================
Files 342 342
Lines 13084 13084
Branches 1062 1063 +1
=========================================
Hits 1338 1338
Misses 11678 11678
Partials 68 68
Continue to review full report at Codecov.
|
No problem! |
Thank you , I panicked a lot so I thought of starting from scratch , and
also know if you like we can add animation, maybe similar to the one when
you press notification bell
…On Thu, 8 Apr, 2021, 7:48 pm Nicolas Raoul, ***@***.***> wrote:
No problem!
By the way, you can edit a pull request simply by pushing to the same
remote branch. No need to close the PR and open a new one :-)
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#4340 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ANMXXJ4O7VXN6L6HMARMIELTHW3MPANCNFSM42S63HJQ>
.
|
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.
It works great!
Tapping a contribution now leads to a very smooth experience (I mean there is no flickering).
I just asked for a few minor changes.
Thanks!
app/src/main/java/fr/free/nrw/commons/media/MediaDetailPagerFragment.java
Outdated
Show resolved
Hide resolved
app/src/main/java/fr/free/nrw/commons/media/MediaDetailPagerFragment.java
Outdated
Show resolved
Hide resolved
app/src/main/java/fr/free/nrw/commons/media/MediaDetailPagerFragment.java
Outdated
Show resolved
Hide resolved
app/src/main/java/fr/free/nrw/commons/media/MediaDetailPagerFragment.java
Outdated
Show resolved
Hide resolved
done |
When I was logged out and tried to display a media detail, it crashed with:
|
I works good on contributions list, however it crashes then it comes to explore fragment:
|
I see the adapter is not initialize here |
app/src/main/java/fr/free/nrw/commons/media/MediaDetailPagerFragment.java
Outdated
Show resolved
Hide resolved
And welcome to the project @vinayak0505 , please do not get stressed if something goes wrong with the PR. It is always normal to close them to start from scratch. It is normal to send new commits to the existing PR too. |
Thank you very much and about stressing that you just mentioned if it's because you read the above comments then thank you I felt really good but if something I might blame a mistake on others for my PR then don't worry If I have do a mistake I'll accept that even if I lose an opportunity |
hey!! thanks for the report but please create a different bug report for this as i have figured out what was wrong as problem was in the explore Fragment code i can solve this hear but then i wont get point for GSoC, if creating a issue would problematic then no issue ill upload it here only, ill make point from other bugs no issue @neslihanturan |
We don't only consider number of PRs, we consider their difficulty level for GSoC. There is not a second issue here, this issue covers all of the steps we talked about. So there is no need to create one more issue or one more PR. Can you please commit your new solution (it is hard to follow from code screen shoots, I prefer to see commits instead)? Also, sometimes I am having hard times to understand your messages. Could you please make sure you follow punctuation rules? So that I could follow sentence ends and beginnings. Thanks!:) |
I am working on solving this. I'll take care of punctuation from next time. |
solved please review it. |
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 for fixing the stylistic issues!
I just tested with this branch's latest code, it works great for me even when scrolling and tapping like crazy.
Neslihan, if you know a way to trigger the crash with higher probability (for instance by tapping fast in a particular order), please let us know :-)
Can I start working on other issues? |
Yes, feel free to work on other issues while we test this branch further.
By the way, I suggest you create a new branch for each pull request, rather
than working directly on your master branch.
…On Fri, 9 Apr 2021, 13:08 Vinayak Aggarwal, ***@***.***> wrote:
Can I start working on other issues?
I have checked from my side as this function is used in five different
places and I have checked them
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#4340 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAAYKBWAQDBRFRQFCI4FTVDTHZ4UTANCNFSM42S63HJQ>
.
|
@neslihanturan please review this :) |
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.
I have been using this branch for 2 days, it is working great so far, I really appreciate that flickering (previous image shown briefly upon tapping) does not happen anymore.
Apart from the small detail I noticed right now, the code looks reasonable to me.
app/src/main/java/fr/free/nrw/commons/media/MediaDetailPagerFragment.java
Outdated
Show resolved
Hide resolved
@neslihanturan I have made changes as per your requirement. so please check. |
…android-commons" This reverts commit d215a2e, reversing changes made to 27754f3.
I have merged upstream also please check |
Thanks @vinayak0505 and @nicolas-raoul , I am on it :) |
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.
Hey @vinayak0505 there are several irrelevant changes made in this PR, please revert them. Only required lines to solve the issue should be changed. So when you switched to files tab on github (or when you check git diff) you should only see related lines are edited. Please make sure you create a new branches on each task, otherwise (if you work on master for all tasks) such problems may occur. You can follow our contributors guideline for information about git flows. Please ping me for review as soon as you solved this issue.
If you are confused feel free to close this PR and open a new one.
@neslihanturan in last 2 commits I only pull upstream to check , I revert them back but they didn't update. can you merge with leaving the last 2 commits |
Check the third last commit |
@vinayak0505 It is a good thing to keep PRs up-to-date, your intent was great. |
I would be great if you could do it for this one :-) |
…pp/apps-android-commons"" This reverts commit d7e06de.
…android-commons" This reverts commit d215a2e, reversing changes made to 27754f3.
…pp/apps-android-commons"" This reverts commit d7e06de.
@nicolas-raoul I revert back the changes and made a rebase but then it shows more files changed so i created a new pull request |
@neslihanturan please check pull request #4354 |
Description (required)
I am sorry for previous pull request as i panicked and push the wrong one
Fixes #3879 #4283
What changes did you make and why?
I just added a feature to check it the clicked item is loaded before setting that item, which will remove image flicker as program will not wait for 5 milliseconds and random crashes
Tests performed (required)
manual testing
please check this i am really sorry about previous pull request @nicolas-raoul @madhurgupta10 @neslihanturan