From 466dc9764b3c7eacea354f3c952fe800c1211ed9 Mon Sep 17 00:00:00 2001 From: HandyMenny Date: Sun, 19 Oct 2014 20:08:03 +0200 Subject: 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 --- gui/Android.mk | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) (limited to 'gui') 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) -- cgit v1.2.3