-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Nearby: make list resize and display message when empty #3746
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
Nearby: make list resize and display message when empty #3746
Conversation
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.
Could you please add tests to make sure this change works as expected?
Codecov Report
@@ Coverage Diff @@
## master #3746 +/- ##
===========================================
- Coverage 7.41% 7.26% -0.15%
+ Complexity 340 333 -7
===========================================
Files 290 290
Lines 12842 12700 -142
Branches 1004 1009 +5
===========================================
- Hits 952 923 -29
+ Misses 11815 11704 -111
+ Partials 75 73 -2 Continue to review full report at Codecov.
|
app/src/main/java/fr/free/nrw/commons/nearby/fragments/NearbyParentFragment.java
Outdated
Show resolved
Hide resolved
Codecov Report
@@ Coverage Diff @@
## master #3746 +/- ##
===========================================
- Coverage 7.41% 6.99% -0.43%
+ Complexity 340 317 -23
===========================================
Files 290 290
Lines 12842 12616 -226
Branches 1004 1005 +1
===========================================
- Hits 952 882 -70
+ Misses 11815 11666 -149
+ Partials 75 68 -7 Continue to review full report at Codecov.
|
…3746) * Nearby: make list resize and display message when empty * refactored and renamed for clarity * refactoring and simplifying based on comments * refactoring and simplifying based on comments * removing vertical orientation
…3746) * Nearby: make list resize and display message when empty * refactored and renamed for clarity * refactoring and simplifying based on comments * refactoring and simplifying based on comments * removing vertical orientation
Description
Make the list of nearby places resize up to its old size, depending on the content. Handle the empty case by displaying a message.
Fixes #3727
What changes did you make and why?
Tests performed
Tested betaDebug on Pixel XL with API level 29.
Screenshots

List at full size
List resized

Message displayed when list is empty
