Use better names for asset titles.
This commit is contained in:
parent
50c207cc78
commit
39d3208185
|
@ -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(),
|
||||
|
|
|
@ -269,7 +269,7 @@ public class KegsMain extends SherlockFragmentActivity implements KegsKeyboard.S
|
|||
}
|
||||
});
|
||||
}
|
||||
}, 1000);
|
||||
}, 2000);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -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() {
|
||||
|
|
Loading…
Reference in New Issue