Use better names for asset titles.

This commit is contained in:
James Sanford 2012-12-20 14:19:44 -08:00
parent 50c207cc78
commit 39d3208185
3 changed files with 13 additions and 2 deletions

View File

@ -41,6 +41,16 @@ class AssetImages extends AsyncTask<Void, Void, Boolean> {
checkOldImagePath("System 6.hdv");
}
public static String translateTitle(final String title) {
if (title.equals("System 6.hdv")) {
return "System 6";
} else if (title.equals("XMAS_DEMO.2MG")) {
return "X-MAS Demo";
} else {
return title;
}
}
protected Boolean doInBackground(Void... params) {
mConfigFile.ensureAssetCopied(mConfigFile.getImagePath(), "XMAS_DEMO.2MG");
mConfigFile.ensureAssetCopied(mConfigFile.getImagePath(),

View File

@ -269,7 +269,7 @@ public class KegsMain extends SherlockFragmentActivity implements KegsKeyboard.S
}
});
}
}, 1000);
}, 2000);
}
}

View File

@ -88,7 +88,8 @@ class DiskImage implements Comparable {
}
public String getTitle() {
return getBaseFilename();
// Use better names for included assets.
return AssetImages.translateTitle(getBaseFilename());
}
public int getIconId() {