summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--gui/Android.mk14
1 files changed, 8 insertions, 6 deletions
diff --git a/gui/Android.mk b/gui/Android.mk
index baae3edf8..96b2fee49 100644
--- a/gui/Android.mk
+++ b/gui/Android.mk
@@ -71,12 +71,14 @@ $(warning **********************************************************************
$(error stopping)
endif
-ifeq "$(wildcard $(commands_recovery_local_path)/gui/devices/$(DEVICE_RESOLUTION))" ""
-$(warning ********************************************************************************)
-$(warning * DEVICE_RESOLUTION ($(DEVICE_RESOLUTION)) does NOT EXIST in $(commands_recovery_local_path)/gui/devices )
-$(warning * Please choose an existing theme or create a new one for your device )
-$(warning ********************************************************************************)
-$(error stopping)
+ifeq ($(TW_CUSTOM_THEME),)
+ ifeq "$(wildcard $(commands_recovery_local_path)/gui/devices/$(DEVICE_RESOLUTION))" ""
+ $(warning ********************************************************************************)
+ $(warning * DEVICE_RESOLUTION ($(DEVICE_RESOLUTION)) does NOT EXIST in $(commands_recovery_local_path)/gui/devices )
+ $(warning * Please choose an existing theme or create a new one for your device )
+ $(warning ********************************************************************************)
+ $(error stopping)
+ endif
endif
LOCAL_C_INCLUDES += bionic external/stlport/stlport $(commands_recovery_local_path)/gui/devices/$(DEVICE_RESOLUTION)