Skip to content

Commit f23cd82

Browse files
committed
Add comments
1 parent f08641b commit f23cd82

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

app/src/main/java/fr/free/nrw/commons/nearby/NearbyMapFragment.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -394,7 +394,8 @@ public void onSlide(@NonNull View bottomSheet, float slideOffset) {
394394
}
395395
});
396396

397-
// Remove texts if it doesnt fit
397+
// Remove button text if they exceed 1 line or if internal layout has not been built
398+
// Only need to check for directions button because it is the longest
398399
if (directionsButtonText.getLineCount() > 1 || directionsButtonText.getLineCount() == 0) {
399400
wikipediaButtonText.setVisibility(View.GONE);
400401
wikidataButtonText.setVisibility(View.GONE);

0 commit comments

Comments
 (0)