mirror of
https://github.com/jamessanford/kegs.git
synced 2025-01-07 22:32:56 +00:00
Silly optimization for better user experience.
This commit is contained in:
parent
e62d6044b1
commit
3fe3583506
@ -16,6 +16,13 @@ class AssetImages extends AsyncTask<Void, Void, Boolean> {
|
||||
AssetImages(AssetsReady notify, ConfigFile config) {
|
||||
mNotify = notify;
|
||||
mConfigFile = config;
|
||||
|
||||
// An optimization to let the UI thread know as soon as possible.
|
||||
if (mNotify != null &&
|
||||
new File(mConfigFile.getImagePath(), "XMAS_DEMO.2MG").exists() &&
|
||||
new File(mConfigFile.getImagePath(), "System 6.hdv").exists()) {
|
||||
mNotify.onAssetsReady(true);
|
||||
}
|
||||
}
|
||||
|
||||
private void checkOldImagePath(String filename) {
|
||||
|
Loading…
Reference in New Issue
Block a user