summaryrefslogtreecommitdiffstats
path: root/gui/Android.mk
diff options
context:
space:
mode:
authorbigbiff bigbiff <bigbiff@teamw.in>2014-07-27 23:45:51 +0200
committerEthan Yonker <dees_troy@teamw.in>2014-07-28 16:00:36 +0200
commitc45181db0902762fb670b56a173db7c331e564cb (patch)
treeaa56e2c6816d4b3d7d62e688e09d5e7212d658f8 /gui/Android.mk
parentAllow ui.xml to include additional xml files to read (diff)
downloadandroid_bootable_recovery-c45181db0902762fb670b56a173db7c331e564cb.tar
android_bootable_recovery-c45181db0902762fb670b56a173db7c331e564cb.tar.gz
android_bootable_recovery-c45181db0902762fb670b56a173db7c331e564cb.tar.bz2
android_bootable_recovery-c45181db0902762fb670b56a173db7c331e564cb.tar.lz
android_bootable_recovery-c45181db0902762fb670b56a173db7c331e564cb.tar.xz
android_bootable_recovery-c45181db0902762fb670b56a173db7c331e564cb.tar.zst
android_bootable_recovery-c45181db0902762fb670b56a173db7c331e564cb.zip
Diffstat (limited to 'gui/Android.mk')
-rw-r--r--gui/Android.mk6
1 files changed, 4 insertions, 2 deletions
diff --git a/gui/Android.mk b/gui/Android.mk
index fa40e0fae..2acbc92c8 100644
--- a/gui/Android.mk
+++ b/gui/Android.mk
@@ -96,10 +96,12 @@ TWRP_RES_LOC := $(commands_recovery_local_path)/gui/devices/common/res
TWRP_COMMON_XML := $(hide) echo "No common TWRP XML resources"
ifeq ($(TW_CUSTOM_THEME),)
+ PORTRAIT := 320x480 480x800 480x854 540x960 720x1280 800x1280 1080x1920 1200x1920 1440x2560 1600x2560
+ LANDSCAPE := 800x480 1024x600 1024x768 1280x800 1920x1200 2560x1600
TWRP_THEME_LOC := $(commands_recovery_local_path)/gui/devices/$(DEVICE_RESOLUTION)/res
- ifneq ($(filter $(DEVICE_RESOLUTION), 320x480 480x800 480x854 540x960 720x1280 800x1280 1080x1920 1200x1920 1600x2560),)
+ ifneq ($(filter $(DEVICE_RESOLUTION), $(PORTRAIT)),)
TWRP_COMMON_XML := cp -fr $(commands_recovery_local_path)/gui/devices/portrait/res/* $(TARGET_RECOVERY_ROOT_OUT)/res/
- else ifneq ($(filter $(DEVICE_RESOLUTION), 800x480 1024x600 1024x768 1280x800 1920x1200 2560x1600),)
+ else ifneq ($(filter $(DEVICE_RESOLUTION), $(LANDSCAPE)),)
TWRP_COMMON_XML := cp -fr $(commands_recovery_local_path)/gui/devices/landscape/res/* $(TARGET_RECOVERY_ROOT_OUT)/res/
endif
else