mirror of
https://github.com/revanced/Apktool.git
synced 2025-01-21 01:07:34 +01:00
Added tests and support for -television qualifier (API13).
This commit is contained in:
parent
8b285989d2
commit
fafc3f447c
@ -196,6 +196,9 @@ 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:
|
||||||
@ -405,6 +408,7 @@ public class ResConfigFlags {
|
|||||||
public final static byte UI_MODE_TYPE_NORMAL = 0x01;
|
public final static byte UI_MODE_TYPE_NORMAL = 0x01;
|
||||||
public final static byte UI_MODE_TYPE_DESK = 0x02;
|
public final static byte UI_MODE_TYPE_DESK = 0x02;
|
||||||
public final static byte UI_MODE_TYPE_CAR = 0x03;
|
public final static byte UI_MODE_TYPE_CAR = 0x03;
|
||||||
|
public final static byte UI_MODE_TYPE_TELEVISION = 0x04;
|
||||||
|
|
||||||
public final static byte MASK_UI_MODE_NIGHT = 0x30;
|
public final static byte MASK_UI_MODE_NIGHT = 0x30;
|
||||||
public final static byte UI_MODE_NIGHT_ANY = 0x00;
|
public final static byte UI_MODE_NIGHT_ANY = 0x00;
|
||||||
|
@ -117,7 +117,7 @@ public class BuildAndDecodeTest {
|
|||||||
@Test
|
@Test
|
||||||
public void qualifiersTest() throws BrutException {
|
public void qualifiersTest() throws BrutException {
|
||||||
compareValuesFiles("values-mcc004-mnc4-en-rUS-sw100dp-w200dp-h300dp" +
|
compareValuesFiles("values-mcc004-mnc4-en-rUS-sw100dp-w200dp-h300dp" +
|
||||||
"-xlarge-long-land-desk-night-xhdpi-finger-keyssoft-12key" +
|
"-xlarge-long-land-television-night-xhdpi-finger-keyssoft-12key" +
|
||||||
"-navhidden-dpad/strings.xml");
|
"-navhidden-dpad/strings.xml");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user