Skip to content

Fix upload card view arrow direction error (#2205) #2653

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

Merged
merged 1 commit into from
Mar 18, 2019

Conversation

mrpeny
Copy link
Contributor

@mrpeny mrpeny commented Mar 18, 2019

Description

Fixes #2205 Upload card view arrow points in random direction

This is an intermittent bug, hard to reproduce but when it occurs then the bug hides in the Android native libraries where the ViewPropertyAnimator sets the rotation member variable on the arrow ImageView. Therefore I eliminated the reading of this field and set the rotation property explicitly. The rotation of the arrow is also set explicitly in the activity_upload_bottom_card.xml layout file.

Tests performed

Tested on betaDebug build variant on Galaxy_Nexus_API_28 with API level 28 with the same settings as described in the conversation below the Issue.

Screenshots showing what changed (optional - for UI changes)

Screenshot_1552935907
Screenshot_1552935915

@codecov-io
Copy link

Codecov Report

Merging #2653 into master will not change coverage.
The diff coverage is 0%.

Impacted file tree graph

@@          Coverage Diff           @@
##           master   #2653   +/-   ##
======================================
  Coverage    2.75%   2.75%           
======================================
  Files         260     260           
  Lines       12437   12437           
  Branches     1125    1125           
======================================
  Hits          343     343           
  Misses      12067   12067           
  Partials       27      27
Impacted Files Coverage Δ
...ava/fr/free/nrw/commons/upload/UploadActivity.java 0% <0%> (ø) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 1040c2d...762c210. Read the comment docs.

@domdomegg domdomegg self-requested a review March 18, 2019 20:28
Copy link
Member

@domdomegg domdomegg left a comment

Choose a reason for hiding this comment

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

Tested 2.10.1-debug-arrow-direction~762c21003

Beta Commons upload

@domdomegg domdomegg merged commit 66ba35a into commons-app:master Mar 18, 2019
@domdomegg
Copy link
Member

@mrpeny In #2205 (comment) you mentioned you were new to the open source world and you wanted to know if anything wasn't correct. I'd like you to know that this was a perfect PR - something that is extremely rare! It's clear you've read the documentation carefully, but I really liked that you:

  • Communicating very clearly about when you were working on the issue, checking who was assigned etc.
  • Solved the issue quickly (it's fine if it's assigned for a few days but sometimes it can be months and it gets lost)
  • Titled your commits and pull request well, referenced the issue number and named your development branch well
  • Were clear about what tests were performed, and providing screenshots
  • Changed the least amount of code possible so the PR is small, making it easy to review + not likely to cause serious merge conflicts
  • Added the appropriate Javadoc

@mrpeny
Copy link
Contributor Author

mrpeny commented Apr 15, 2019

Thank you @domdomegg, I really appreciate your detailed answer. It is a very good impression for my about the open source world :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Upload card view arrow points in random direction
3 participants