nx: use a better default dpi

The small ~7" 16:9 displays need smaller, higher res elements,
without making TVs look terrible when docked (without forcing
wm-based dpi changes). Use 214 (~tvdpi) for density and use tvdpi
assets on atv and xhdpi assets on mobile.

Change-Id: I1d5847ef5dbb11a83e403788f4f8d757b0ec55cd
This commit is contained in:
tmakin authored and Nolen Johnson committed 2024-01-25 15:54:02 -05:00
1 parent 015f2f32bc
commit c34b5ceee1
1 file changed
+4 -3
+4 -3
View File
@@ -35,13 +35,14 @@ include device/nvidia/t210-common/t210.mk
# Properties
include $(LOCAL_PATH)/properties.mk
PRODUCT_AAPT_PREBUILT_DPI := xxhdpi xhdpi hdpi mdpi hdpi
PRODUCT_AAPT_PREF_CONFIG := xhdpi
PRODUCT_AAPT_PREBUILT_DPI := xxhdpi xhdpi hdpi tvdpi mdpi
PRODUCT_AAPT_CONFIG := normal large xlarge
ifeq ($(PRODUCT_IS_ATV),true)
PRODUCT_CHARACTERISTICS := tv
PRODUCT_AAPT_PREBUILT_DPI += tvdpi
PRODUCT_AAPT_PREF_CONFIG := tvdpi
else
PRODUCT_CHARACTERISTICS := tablet
PRODUCT_AAPT_PREF_CONFIG := xhdpi
endif
$(call inherit-product, frameworks/native/build/tablet-7in-xhdpi-2048-dalvik-heap.mk)