Add comments

This commit is contained in:
misaochan 2018-03-26 18:48:09 +10:00
parent f08641b66f
commit f23cd8214d

View file

@ -394,7 +394,8 @@ public class NearbyMapFragment extends DaggerFragment {
} }
}); });
// Remove texts if it doesnt fit // Remove button text if they exceed 1 line or if internal layout has not been built
// Only need to check for directions button because it is the longest
if (directionsButtonText.getLineCount() > 1 || directionsButtonText.getLineCount() == 0) { if (directionsButtonText.getLineCount() > 1 || directionsButtonText.getLineCount() == 0) {
wikipediaButtonText.setVisibility(View.GONE); wikipediaButtonText.setVisibility(View.GONE);
wikidataButtonText.setVisibility(View.GONE); wikidataButtonText.setVisibility(View.GONE);