diff options
author | Tom Hennen <tom.hennen@gmail.com> | 2015-05-22 17:13:31 -0400 |
---|---|---|
committer | Tom Hennen <tom.hennen@gmail.com> | 2015-05-22 17:13:31 -0400 |
commit | f28853b00dec8875c967ef89ecef9602049a67e7 (patch) | |
tree | 0946074a95801f0614a5fba2a5376ba35b4fcb73 /app/src/main/java/de/danoeh/antennapod/adapter | |
parent | d8b6943f5dccd3a7fe3f6e884ca77a34b92981b7 (diff) | |
download | AntennaPod-f28853b00dec8875c967ef89ecef9602049a67e7.zip |
renamed download progress bar to just progress
Diffstat (limited to 'app/src/main/java/de/danoeh/antennapod/adapter')
-rw-r--r-- | app/src/main/java/de/danoeh/antennapod/adapter/AllEpisodesListAdapter.java | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/app/src/main/java/de/danoeh/antennapod/adapter/AllEpisodesListAdapter.java b/app/src/main/java/de/danoeh/antennapod/adapter/AllEpisodesListAdapter.java index 5c4946b78..d96326053 100644 --- a/app/src/main/java/de/danoeh/antennapod/adapter/AllEpisodesListAdapter.java +++ b/app/src/main/java/de/danoeh/antennapod/adapter/AllEpisodesListAdapter.java @@ -80,8 +80,8 @@ public class AllEpisodesListAdapter extends BaseAdapter { .findViewById(R.id.butSecondaryAction); holder.queueStatus = (ImageView) convertView .findViewById(R.id.imgvInPlaylist); - holder.downloadProgress = (ProgressBar) convertView - .findViewById(R.id.pbar_download_progress); + holder.progress = (ProgressBar) convertView + .findViewById(R.id.pbar_progress); holder.imageView = (ImageView) convertView.findViewById(R.id.imgvImage); holder.txtvDuration = (TextView) convertView.findViewById(R.id.txtvDuration); convertView.setTag(holder); @@ -111,22 +111,22 @@ public class AllEpisodesListAdapter extends BaseAdapter { FeedItem.State state = item.getState(); if (isDownloadingMedia) { - holder.downloadProgress.setVisibility(View.VISIBLE); + holder.progress.setVisibility(View.VISIBLE); // item is being downloaded - holder.downloadProgress.setProgress(itemAccess.getItemDownloadProgressPercent(item)); + holder.progress.setProgress(itemAccess.getItemDownloadProgressPercent(item)); } else if (state == FeedItem.State.PLAYING || state == FeedItem.State.IN_PROGRESS) { if (media.getDuration() > 0) { int progress = (int) (100.0 * media.getPosition() / media.getDuration()); - holder.downloadProgress.setProgress(progress); - holder.downloadProgress.setVisibility(View.VISIBLE); + holder.progress.setProgress(progress); + holder.progress.setVisibility(View.VISIBLE); } } else { - holder.downloadProgress.setVisibility(View.GONE); + holder.progress.setVisibility(View.GONE); } } else { - holder.downloadProgress.setVisibility(View.GONE); + holder.progress.setVisibility(View.GONE); holder.txtvDuration.setVisibility(View.GONE); } @@ -164,7 +164,7 @@ public class AllEpisodesListAdapter extends BaseAdapter { View statusUnread; ImageView queueStatus; ImageView imageView; - ProgressBar downloadProgress; + ProgressBar progress; TextView txtvDuration; ImageButton butSecondary; } |