summaryrefslogtreecommitdiff
path: root/libs/input/PointerController.cpp
diff options
context:
space:
mode:
author Tyler Freeman <fuego@google.com> 2023-01-19 15:54:51 -0800
committer Tyler Freeman <fuego@google.com> 2023-01-19 17:45:17 -0800
commitc64189b0c424689d876ed5fcefcc1943077822d7 (patch)
tree4b0863f6043ffd2a369ee2c98f4612a2f033a94f /libs/input/PointerController.cpp
parent33561629392dbcfc12ecee7e5b0afcab9d6b1479 (diff)
docs(non linear font scaling): deprecate TypedValue.scaledDensity and add warning on Configuration.fontScale
These fields are no longer useful for calculating font size, since font size is now derived using a non-linear curve. There is no reason anyone should need to use TypedValue.scaledDensity, so that is deprecated. However, it still could be useful to know the user's font scaling preference for other reasons (e.g. choosing a different layout that fits larger font sizes better), so we leave that one intact, but with a warning clarifying it should not be used in hardcoded equations. Bug: b/237558231 Test: nope Change-Id: I5f61492025d1ac66aee302ca0790cebc422d4f55
Diffstat (limited to 'libs/input/PointerController.cpp')
0 files changed, 0 insertions, 0 deletions