mImageCache.addBitmapToCache(dataString, bitmap);
imageCache.addBitmapToCache(message.getKeyString(), data.getProfilePic());
galleryImageView.setImageBitmap(imageCache.getBitmapFromMemCache(message.getKeyString())); } else { imageCache.addBitmapToCache(message.getKeyString(), fileClientService.createAndSaveVideoThumbnail(message.getFilePaths().get(0))); galleryImageView.setImageBitmap(fileClientService.createAndSaveVideoThumbnail(message.getFilePaths().get(0)));
galleryImageView.setImageBitmap(imageCache.getBitmapFromMemCache(message.getKeyString())); } else { imageCache.addBitmapToCache(message.getKeyString(), fileClientService.createAndSaveVideoThumbnail(message.getFilePaths().get(0))); galleryImageView.setImageBitmap(fileClientService.createAndSaveVideoThumbnail(message.getFilePaths().get(0)));
myHolder.imageViewPhoto.setImageBitmap(imageCache.getBitmapFromMemCache(msg.getKeyString())); } else { imageCache.addBitmapToCache(message.getKeyString(), fileClientService.createAndSaveVideoThumbnail(msg.getFilePaths().get(0))); myHolder.imageViewPhoto.setImageBitmap(fileClientService.createAndSaveVideoThumbnail(msg.getFilePaths().get(0))); myHolder.preview.setImageBitmap(imageCache.getBitmapFromMemCache(message.getKeyString())); } else { imageCache.addBitmapToCache(message.getKeyString(), fileClientService.createAndSaveVideoThumbnail(filePath)); myHolder.preview.setImageBitmap(fileClientService.createAndSaveVideoThumbnail(filePath));