AndrolibResources.getFrameworkApk(): fixed small bug, occuring when frameTag is null.

This commit is contained in:
Ryszard Wiśniewski 2010-06-02 11:21:37 +02:00
parent c3fc711ee2
commit 51a429ebd9

View File

@ -304,10 +304,13 @@ final public class AndrolibResources {
private File getFrameworkApk(int id, String frameTag)
throws AndrolibException {
File dir = getFrameworkDir();
File apk;
File apk = new File(dir, String.valueOf(id) + '-' + frameTag + ".apk");
if (apk.exists()) {
return apk;
if (frameTag != null) {
apk = new File(dir, String.valueOf(id) + '-' + frameTag + ".apk");
if (apk.exists()) {
return apk;
}
}
apk = new File(dir, String.valueOf(id) + ".apk");