aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorScott Jackson <daneren2005@gmail.com>2013-05-13 20:10:28 -0700
committerScott Jackson <daneren2005@gmail.com>2013-05-13 20:10:28 -0700
commitcae74d97ae84ddc2838658fecef8c0091784dd3f (patch)
treef07d3ede4100ce6b22f55b25e66571938155c3dc
parentb77377ad3d787f9b25a9f2259780b0cf0e80cf33 (diff)
downloaddsub-cae74d97ae84ddc2838658fecef8c0091784dd3f.tar.gz
dsub-cae74d97ae84ddc2838658fecef8c0091784dd3f.tar.bz2
dsub-cae74d97ae84ddc2838658fecef8c0091784dd3f.zip
Show Playing: as 1-based index instead of 0-based
-rw-r--r--subsonic-android/src/github/daneren2005/dsub/fragments/DownloadFragment.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/subsonic-android/src/github/daneren2005/dsub/fragments/DownloadFragment.java b/subsonic-android/src/github/daneren2005/dsub/fragments/DownloadFragment.java
index e61670da..c745e6d2 100644
--- a/subsonic-android/src/github/daneren2005/dsub/fragments/DownloadFragment.java
+++ b/subsonic-android/src/github/daneren2005/dsub/fragments/DownloadFragment.java
@@ -887,7 +887,7 @@ public class DownloadFragment extends SubsonicFragment implements OnGestureListe
break;
}
- setSubtitle(context.getResources().getString(R.string.download_playing_out_of, downloadService.getCurrentPlayingIndex(), downloadService.size()));
+ setSubtitle(context.getResources().getString(R.string.download_playing_out_of, downloadService.getCurrentPlayingIndex() + 1, downloadService.size()));
}
private void onCurrentChanged() {
@@ -902,7 +902,7 @@ public class DownloadFragment extends SubsonicFragment implements OnGestureListe
songTitleTextView.setText(song.getTitle());
getImageLoader().loadImage(albumArtImageView, song, true, true);
starButton.setImageResource(song.isStarred() ? android.R.drawable.btn_star_big_on : android.R.drawable.btn_star_big_off);
- setSubtitle(context.getResources().getString(R.string.download_playing_out_of, downloadService.getCurrentPlayingIndex(), downloadService.size()));
+ setSubtitle(context.getResources().getString(R.string.download_playing_out_of, downloadService.getCurrentPlayingIndex() + 1, downloadService.size()));
} else {
songTitleTextView.setText(null);
getImageLoader().loadImage(albumArtImageView, null, true, false);