commit | 7772fcde4792d623acbfd8222e8881d01e7db953 | [log] [tgz] |
---|---|---|
author | Jon Miranda <jonmiranda@google.com> | Mon Jun 01 14:08:16 2020 -0700 |
committer | Jon Miranda <jonmiranda@google.com> | Mon Jun 01 14:08:16 2020 -0700 |
tree | 09920230fbb48eddbe23443ba9ffe42bf85c4ed4 | |
parent | 2911c56a80180dd164226ef80b65355680e1cab6 [diff] |
Fix bug where font size (etc.) doesn't change after changing display settings. The metrics we get from Display#getMetrics does not change regardless of what the new configuration is (we would expect the scaledDensity to change). Documentation shows that Display#getMetrics is deprecated in R. Using guidance from b/154665987#comment14 we get the metrics from the derived context. Bug: 156141463 Change-Id: I25e5f2c13f94e0471111f6c895694947998e3222