-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Feature to zoom images #2427
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
Feature to zoom images #2427
Conversation
Codecov Report
@@ Coverage Diff @@
## master #2427 +/- ##
=========================================
- Coverage 2.77% 2.77% -0.01%
=========================================
Files 259 260 +1
Lines 12364 12375 +11
Branches 1116 1118 +2
=========================================
Hits 343 343
- Misses 11994 12005 +11
Partials 27 27
Continue to review full report at Codecov.
|
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.
Do not add another library for zooming. We already use PhotoView
and the same can be used here.
171f0f2
to
d48b4f3
Compare
c33c39d
to
27b4c16
Compare
@maskaravivek Updated. Added new GIF also. |
Waiting hard for this to come to #pluspora... |
Can someone please review this? |
app/src/main/java/fr/free/nrw/commons/media/MediaDetailFragment.java
Outdated
Show resolved
Hide resolved
@maskaravivek Are any more changes required? :) |
Hi @ShridharGoel , is it expected to select a media from explore and to be able to zoom in out there? I tested this but nothing changed on API 19 real device and API 26 emulator. |
@neslihanturan Yes, first we need to click on the media to open it in zoomable mode. |
Does it work for you with emulator? |
I had tried on a real device, it was working fine (as in the GIF). |
But you made some changes after adding the GIF, that's why I wanted to ask. It worked me once on an API 26 emulator, but it didn't work for long time at the beginning. Then suddenly it worked. Can you explain more which kind on click activates it? long click, double click etc. |
A normal single click |
Finally I have managed to make it work, but I have a doubt. How the user bring information sheet back, after zoomed in out? And instead of single click to activate, can we consider another solution which is more easy to find for user? |
Additionally, app freeze and closes on API 19 device after single click to image. Will try to share logs shortly. |
Above is the whole logs I could collect from API 19 device. It seems like too many threads are created, this explains why I hardly tested this feature on an emulator or on an old device and why the app freeze and app gets closed. You may need to check and optimize number of threads you create for this purpose, and make sure you handled them appropriately. |
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.
Please redesign thread logic more efficiently.
Is this PR active @ShridharGoel ? |
Closing this PR since it seems like sleeping and it has issues that can't be solved trivially. Another fresh approach can take shorter time. |
1 similar comment
Closing this PR since it seems like sleeping and it has issues that can't be solved trivially. Another fresh approach can take shorter time. |
Description
Fixes #2421
Now, clicking on the image in media details would open up the image which can be zoomed.
Tests performed
Tested betaDebug on Android 7.1.2 (API 25).
GIF showing what changed