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