diff options
author | 2023-10-23 10:48:42 +0900 | |
---|---|---|
committer | 2023-10-25 10:19:04 +0900 | |
commit | de05ca718cbaf1594723894651b31b77264d386d (patch) | |
tree | 74d23ce0df60562d5aa68aefe5e9d1747a260dbd /libs/hwui/FeatureFlags.h | |
parent | ce80e37f4556c35ba80e1a6fe57585c5aef39eb3 (diff) |
Change default value of setElegantTextFlag
As a first step of deprecating UI fonts, make setElegantTextFlag as true
by default if the target SDK is set to Android 15 or later..
Bug: 279646685
Test: atest PaintDefaultsTest
Change-Id: If8e40c075122cafd2f89ae703bf6a5f07ebc7bd0
Diffstat (limited to 'libs/hwui/FeatureFlags.h')
-rw-r--r-- | libs/hwui/FeatureFlags.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/libs/hwui/FeatureFlags.h b/libs/hwui/FeatureFlags.h index ffb329d9f8e6..00d049cde925 100644 --- a/libs/hwui/FeatureFlags.h +++ b/libs/hwui/FeatureFlags.h @@ -33,6 +33,14 @@ inline bool fix_double_underline() { #endif // __ANDROID__ } +inline bool deprecate_ui_fonts() { +#ifdef __ANDROID__ + return com_android_text_flags_deprecate_ui_fonts(); +#else + return true; +#endif // __ANDROID__ +} + } // namespace text_feature } // namespace android |