indicate if selected tracks tab is empty

This commit is contained in:
sonora 2014-07-01 23:01:23 +02:00
parent dfbf83f9cd
commit 3cc949f16e

View file

@ -115,6 +115,8 @@ public class FavouritesActivity extends SherlockFragmentActivity {
if (gpx.isShowingAnyGpxFiles()) { if (gpx.isShowingAnyGpxFiles()) {
vl += " (" + gpx.getSelectedGPXFiles().size() vl += " (" + gpx.getSelectedGPXFiles().size()
+ ")"; + ")";
} else {
vl += " (0)";
} }
try { try {
((TextView)tabHost.getTabWidget().getChildAt(2).findViewById(android.R.id.title)).setText(vl); ((TextView)tabHost.getTabWidget().getChildAt(2).findViewById(android.R.id.title)).setText(vl);