mirror of
https://github.com/moonlight-stream/moonlight-android.git
synced 2026-10-20 15:27:18 +00:00
Use a separate executor for network loads to avoid stalling cached loads. Optimize background cache fill loads.
This commit is contained in:
1 parent
56c8a9e6fe
commit
899387caa1
4 files changed
+73
-61
No files matched your search
@@ -19,6 +19,10 @@ public class DiskAssetLoader {
|
||||
this.cacheDir = cacheDir;
|
||||
}
|
||||
|
||||
public boolean checkCacheExists(CachedAppAssetLoader.LoaderTuple tuple) {
|
||||
return CacheHelper.cacheFileExists(cacheDir, "boxart", tuple.computer.uuid.toString(), tuple.app.getAppId() + ".png");
|
||||
}
|
||||
|
||||
public Bitmap loadBitmapFromCache(CachedAppAssetLoader.LoaderTuple tuple, int sampleSize) {
|
||||
InputStream in = null;
|
||||
Bitmap bmp = null;
|
||||
|
||||
Reference in new issue
Block a user