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.

This commit is contained in:
Connor Tumbleson 2012-06-08 12:31:49 -05:00
parent de52fcba8c
commit 6eb419af7d

View File

@ -196,9 +196,6 @@ public class ResConfigFlags {
case UI_MODE_TYPE_DESK: case UI_MODE_TYPE_DESK:
ret.append("-desk"); ret.append("-desk");
break; break;
case UI_MODE_TYPE_TELEVISION:
ret.append("-television");
break;
} }
switch (uiMode & MASK_UI_MODE_NIGHT) { switch (uiMode & MASK_UI_MODE_NIGHT) {
case UI_MODE_NIGHT_YES: case UI_MODE_NIGHT_YES:
@ -220,6 +217,9 @@ public class ResConfigFlags {
case DENSITY_HIGH: case DENSITY_HIGH:
ret.append("-hdpi"); ret.append("-hdpi");
break; break;
case DENSITY_TV:
ret.append("-tvdpi");
break;
case DENSITY_XHIGH: case DENSITY_XHIGH:
ret.append("-xhdpi"); ret.append("-xhdpi");
break; break;
@ -365,6 +365,7 @@ public class ResConfigFlags {
public final static short DENSITY_DEFAULT = 0; public final static short DENSITY_DEFAULT = 0;
public final static short DENSITY_LOW = 120; public final static short DENSITY_LOW = 120;
public final static short DENSITY_MEDIUM = 160; 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_HIGH = 240;
public final static short DENSITY_XHIGH = 320; public final static short DENSITY_XHIGH = 320;
public final static short DENSITY_NONE = -1; public final static short DENSITY_NONE = -1;