Skip to content

Fixed Padding for FAB in nearby #2779 #2780

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 3 commits into from
Apr 2, 2019

Conversation

madhurgupta10
Copy link
Collaborator

Description
Fixed Padding for Upload FAB in nearby

Fixes #2779 Upload FAB Missing Padding in Nearby

Tests performed

Tested betaDebug on Xiaomi Mi A1 with API level 28.

Screenshots showing what changed

Before
Screenshot_20190328-082901

After
Screenshot_20190328-083417

@codecov-io
Copy link

codecov-io commented Mar 28, 2019

Codecov Report

Merging #2780 into master will increase coverage by 1%.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master   #2780    +/-   ##
=======================================
+ Coverage    2.83%   3.83%    +1%     
=======================================
  Files         268     267     -1     
  Lines       12774   12529   -245     
  Branches     1129    1083    -46     
=======================================
+ Hits          362     481   +119     
+ Misses      12387   12015   -372     
- Partials       25      33     +8
Impacted Files Coverage Δ
...va/fr/free/nrw/commons/campaigns/CampaignView.java 0% <0%> (ø) ⬆️
...n/java/fr/free/nrw/commons/auth/LoginActivity.java 0% <0%> (ø) ⬆️
...main/java/fr/free/nrw/commons/location/LatLng.java 40.81% <0%> (ø) ⬆️
...ee/nrw/commons/media/MediaDetailPagerFragment.java 0% <0%> (ø) ⬆️
...java/fr/free/nrw/commons/nearby/PlaceRenderer.java 0% <0%> (ø) ⬆️
...a/fr/free/nrw/commons/review/ReviewController.java 0% <0%> (ø) ⬆️
...a/fr/free/nrw/commons/media/model/ExtMetadata.java 0% <0%> (ø) ⬆️
...rw/commons/mwapi/ApacheHttpClientMediaWikiApi.java 0% <0%> (ø) ⬆️
...fr/free/nrw/commons/settings/SettingsFragment.java 0% <0%> (ø) ⬆️
.../nrw/commons/category/CategoryDetailsActivity.java 0% <0%> (ø) ⬆️
... and 22 more

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 995de60...80d33fa. Read the comment docs.

@neslihanturan
Copy link
Collaborator

Can you please add some other screenshots with other screen sizes too, by using an emulator? Ie. tablet screen.

@madhurgupta10
Copy link
Collaborator Author

madhurgupta10 commented Mar 28, 2019

@neslihanturan I wanted to do that but the app seems to be crashing on Tablets #2766 :( EDIT: See comments below

@madhurgupta10
Copy link
Collaborator Author

@neslihanturan I was able to fix the tablet app crash issue #2766 , I will open another PR for it
Screenshot_1553788419
Screenshot_1553788427
Screenshot_20190328-210406
Screenshot_20190328-210530

@domdomegg
Copy link
Member

The gallery icon seems to be further from the + icon now. Can this be like previously, as it looks unbalanced now. Otherwise this PR seems good.

@madhurgupta10
Copy link
Collaborator Author

@domdomegg That is because of extra FAB (android:id="@+id/fab_commons_page") in nearby, I don't know if it is even in use or not.

@domdomegg
Copy link
Member

It doesn't seem to be used anywhere - probably worth removing or changing the padding settings as formatting looks weird with the extra gap there.

@madhurgupta10
Copy link
Collaborator Author

madhurgupta10 commented Mar 28, 2019

@domdomegg Could you please review #2787 in high priority, due to the crash I am unable to test other UI changes. EDIT: PR Merged

@madhurgupta10
Copy link
Collaborator Author

madhurgupta10 commented Mar 28, 2019

It doesn't seem to be used anywhere - probably worth removing or changing the padding settings as formatting looks weird with the extra gap there.

@domdomegg Even removing it, didn't helped, to fix that small gap, I probably have to go through many changes, not in UI but also in NearbyMapFragment, Also opening it horizontally in Landscape mode This might take a long time to do so, better to do it in a separate PR IMO. EDIT: Fixed, See Screenshot Below

@madhurgupta10
Copy link
Collaborator Author

madhurgupta10 commented Mar 29, 2019

@domdomegg Done :)
Screenshot_20190329-053448

Side by Side Comparison (the new padding is similar to one present in Contributions Fragment)
Annotation 2019-03-29 053943

@madhurgupta10
Copy link
Collaborator Author

@neslihanturan @domdomegg please review the new changes :)

@neslihanturan
Copy link
Collaborator

Worked fine for me, thanks @madhurgupta10

@neslihanturan neslihanturan merged commit 02ad3b2 into commons-app:master Apr 2, 2019
@madhurgupta10 madhurgupta10 deleted the issue-2779 branch April 2, 2019 11:34
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.

4 participants