From 6eb419af7db6ad30932d1b875fe22fc84616aaec Mon Sep 17 00:00:00 2001 From: Connor Tumbleson Date: Fri, 8 Jun 2012 12:31:49 -0500 Subject: [PATCH] forgot to re-merge in ConfigFlag fix, as seen here: http://developer.android.com/guide/topics/resources/providing-resources.html -tvdpi is now used instead of the -television para. --- .../main/java/brut/androlib/res/data/ResConfigFlags.java | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/apktool-lib/src/main/java/brut/androlib/res/data/ResConfigFlags.java b/apktool-lib/src/main/java/brut/androlib/res/data/ResConfigFlags.java index 19160524..0e392e2e 100644 --- a/apktool-lib/src/main/java/brut/androlib/res/data/ResConfigFlags.java +++ b/apktool-lib/src/main/java/brut/androlib/res/data/ResConfigFlags.java @@ -196,9 +196,6 @@ public class ResConfigFlags { case UI_MODE_TYPE_DESK: ret.append("-desk"); break; - case UI_MODE_TYPE_TELEVISION: - ret.append("-television"); - break; } switch (uiMode & MASK_UI_MODE_NIGHT) { case UI_MODE_NIGHT_YES: @@ -220,6 +217,9 @@ public class ResConfigFlags { case DENSITY_HIGH: ret.append("-hdpi"); break; + case DENSITY_TV: + ret.append("-tvdpi"); + break; case DENSITY_XHIGH: ret.append("-xhdpi"); break; @@ -365,6 +365,7 @@ public class ResConfigFlags { public final static short DENSITY_DEFAULT = 0; public final static short DENSITY_LOW = 120; public final static short DENSITY_MEDIUM = 160; + public final static short DENSITY_TV = 213; public final static short DENSITY_HIGH = 240; public final static short DENSITY_XHIGH = 320; public final static short DENSITY_NONE = -1;