mirror of
https://github.com/kiwix/kiwix-android.git
synced 2025-09-15 18:36:01 -04:00
Android resume icon displays correctly after relaunch #291
This commit is contained in:
parent
79f8558a92
commit
a9035a94d7
@ -144,12 +144,16 @@ public class DownloadFragment extends Fragment {
|
||||
imageView.setImageBitmap(StringToBitMap(getItem(position).getFavicon()));
|
||||
|
||||
ProgressBar downloadProgress = (ProgressBar) convertView.findViewById(R.id.downloadProgress);
|
||||
ImageView pause = (ImageView) convertView.findViewById(R.id.pause);
|
||||
|
||||
if (LibraryFragment.mService.downloadProgress.get(mKeys[position]) != null) {
|
||||
downloadProgress.setProgress(LibraryFragment.mService.downloadProgress.get(mKeys[position]));
|
||||
if (LibraryFragment.mService.downloadStatus.get(mKeys[position]) == 1) {
|
||||
LibraryFragment.mService.pauseDownload(mKeys[position]);
|
||||
pause.setImageDrawable(getResources().getDrawable(R.drawable.ic_play_arrow_black_24dp));
|
||||
}
|
||||
}
|
||||
|
||||
ImageView pause = (ImageView) convertView.findViewById(R.id.pause);
|
||||
pause.setOnClickListener(new View.OnClickListener() {
|
||||
@Override
|
||||
public void onClick(View v) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user