mirror of
https://github.com/nextcloud/android.git
synced 2024-11-23 21:55:48 +03:00
Fixed bug. Thmumbnail is not correct when uploading a file in another folder
This commit is contained in:
parent
3b79715686
commit
cbea96e563
2 changed files with 5 additions and 2 deletions
|
@ -630,7 +630,7 @@ public class FileUploader extends Service implements OnDatatransferProgressListe
|
|||
// coincidence; nothing else is needed, the storagePath is right
|
||||
// in the instance returned by mCurrentUpload.getFile()
|
||||
}
|
||||
|
||||
file.setNeedsUpdateThumbnail(true);
|
||||
mStorageManager.saveFile(file);
|
||||
}
|
||||
|
||||
|
|
|
@ -201,7 +201,9 @@ public class FileListListAdapter extends BaseAdapter implements ListAdapter {
|
|||
final ThumbnailGenerationTask bitmapWorkerTask =
|
||||
getBitmapWorkerTask(imageView);
|
||||
if (this == bitmapWorkerTask && imageView != null) {
|
||||
imageView.setImageBitmap(bitmap);
|
||||
if (imageView.getTag().equals(file.getFileId())) {
|
||||
imageView.setImageBitmap(bitmap);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -280,6 +282,7 @@ public class FileListListAdapter extends BaseAdapter implements ListAdapter {
|
|||
|
||||
fileName.setText(name);
|
||||
ImageView fileIcon = (ImageView) view.findViewById(R.id.imageView1);
|
||||
fileIcon.setTag(file.getFileId());
|
||||
ImageView sharedIconV = (ImageView) view.findViewById(R.id.sharedIcon);
|
||||
ImageView sharedWithMeIconV = (ImageView) view.findViewById(R.id.sharedWithMeIcon);
|
||||
sharedWithMeIconV.setVisibility(View.GONE);
|
||||
|
|
Loading…
Reference in a new issue