gui: Disable unnecessary checks if TW_CUSTOM_THEME is defined
if TW_CUSTOM_THEME is defined there's no need to check if
$(commands_recovery_local_path)/gui/devices/$(DEVICE_RESOLUTION) exist.
Change-Id: I234374eb1db187758102ca64884a94a81c938b54
diff --git a/gui/Android.mk b/gui/Android.mk
index baae3ed..96b2fee 100644
--- a/gui/Android.mk
+++ b/gui/Android.mk
@@ -71,12 +71,14 @@
$(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)