use of org.videolan.vlc.gui.helpers.BitmapCache in project vlc-android by GeoffreyMetais.
the class ThumbnailsProvider method getComposedImage.
@WorkerThread
public static Bitmap getComposedImage(MediaGroup group) {
final BitmapCache bmc = BitmapCache.getInstance();
final String key = "group:" + group.getTitle();
Bitmap composedImage = bmc.getBitmapFromMemCache(key);
if (composedImage == null) {
composedImage = composeImage(group);
if (composedImage != null)
bmc.addBitmapToMemCache(key, composedImage);
}
return composedImage;
}
use of org.videolan.vlc.gui.helpers.BitmapCache in project vlc-android by videolan.
the class ThumbnailsProvider method getComposedImage.
@WorkerThread
public static Bitmap getComposedImage(MediaGroup group) {
final BitmapCache bmc = BitmapCache.getInstance();
final String key = "group:" + group.getTitle();
Bitmap composedImage = bmc.getBitmapFromMemCache(key);
if (composedImage == null) {
composedImage = composeImage(group);
if (composedImage != null)
bmc.addBitmapToMemCache(key, composedImage);
}
return composedImage;
}
Aggregations