Don't show points if there are no points
This commit is contained in:
parent
29fc632a7c
commit
20727b0e16
1 changed files with 3 additions and 0 deletions
|
@ -303,7 +303,10 @@ public class WikivoyageArticleDialogFragment extends WikiArticleBaseDialogFragme
|
|||
webViewClient.setArticle(article);
|
||||
articleToolbarText.setText(article.getTitle());
|
||||
if (article.getGpxFile() != null && article.getGpxFile().getPointsSize() > 0) {
|
||||
trackButton.setVisibility(View.VISIBLE);
|
||||
trackButton.setText(getString(R.string.shared_string_gpx_points) + " (" + article.getGpxFile().getPointsSize() + ")");
|
||||
} else {
|
||||
trackButton.setVisibility(View.GONE);
|
||||
}
|
||||
|
||||
TravelLocalDataHelper ldh = getMyApplication().getTravelDbHelper().getLocalDataHelper();
|
||||
|
|
Loading…
Reference in a new issue