ResConfigFlags: uniquely name every errorous flags.

This commit is contained in:
Ryszard Wiśniewski 2010-08-30 18:36:48 +02:00
parent db2614831d
commit 0c1a55cb31

View File

@ -267,7 +267,7 @@ public class ResConfigFlags {
ret.append("-v").append(sdkVersion); ret.append("-v").append(sdkVersion);
} }
if (isInvalid) { if (isInvalid) {
ret.append("-[ERR]"); ret.append("-ERR" + sErrCounter++);
} }
return ret.toString(); return ret.toString();
@ -312,6 +312,12 @@ public class ResConfigFlags {
return hash; return hash;
} }
// TODO: Dirty static hack. This counter should be a part of ResPackage,
// but it would be hard right now and this feature is very rarely used.
private static int sErrCounter = 0;
public final static byte ORIENTATION_ANY = 0; public final static byte ORIENTATION_ANY = 0;
public final static byte ORIENTATION_PORT = 1; public final static byte ORIENTATION_PORT = 1;
public final static byte ORIENTATION_LAND = 2; public final static byte ORIENTATION_LAND = 2;