Use Makefile variables to specify margin settings.
Instead of defining device-specific UI class, this CL allows using
Makefile variables to specify margin values directly.
Values explicitly defined via TARGET_RECOVERY_UI_MARGIN_HEIGHT and
TARGET_RECOVERY_UI_MARGIN_WIDTH will be used. Otherwise they will
default to zero.
Bug: 62732748
Test: Specify the height and width and check recovery texts.
Change-Id: Icb6f7466c8d407f877b93da38aebfdf7e6b41be7
(cherry picked from commit a92d8fb456)
This commit is contained in:
+12
@@ -92,6 +92,18 @@ endif
|
||||
LOCAL_CFLAGS += -DRECOVERY_API_VERSION=$(RECOVERY_API_VERSION)
|
||||
LOCAL_CFLAGS += -Wno-unused-parameter -Werror
|
||||
|
||||
ifneq ($(TARGET_RECOVERY_UI_MARGIN_HEIGHT),)
|
||||
LOCAL_CFLAGS += -DRECOVERY_UI_MARGIN_HEIGHT=$(TARGET_RECOVERY_UI_MARGIN_HEIGHT)
|
||||
else
|
||||
LOCAL_CFLAGS += -DRECOVERY_UI_MARGIN_HEIGHT=0
|
||||
endif
|
||||
|
||||
ifneq ($(TARGET_RECOVERY_UI_MARGIN_WIDTH),)
|
||||
LOCAL_CFLAGS += -DRECOVERY_UI_MARGIN_WIDTH=$(TARGET_RECOVERY_UI_MARGIN_WIDTH)
|
||||
else
|
||||
LOCAL_CFLAGS += -DRECOVERY_UI_MARGIN_WIDTH=0
|
||||
endif
|
||||
|
||||
LOCAL_C_INCLUDES += \
|
||||
system/vold \
|
||||
|
||||
|
||||
Reference in New Issue
Block a user