commit | 109e15d134d0cd662a4a1217ffd995a170a549d4 | [log] [tgz] |
---|---|---|
author | Tiger <tigerhuang@google.com> | Thu Jun 06 02:38:10 2024 +0800 |
committer | Tiger Huang <tigerhuang@google.com> | Thu Jun 06 08:33:01 2024 +0000 |
tree | 6fe5d0f36192d45fe35fc598105941dc7e99c368 | |
parent | 1ab7bbda26da6a4c687cdd29e98e3bae7b288643 [diff] |
DO NOT MERGE: Restore the logic of verifying the size of DisplayMetrics The widthPixels and heightPixels of a DisplayMetrics should be reduced by display cutout and navigation bar insets if it is obtained from an app which is running on Android 14 or a earlier version or the app targets SDK level 34 or lower. This CL restores the logic. Fix: 340970172 Test: atest WindowMetricsActivityTests WindowMetricsWindowContextTests Change-Id: I1d21c1c53c6378c2516f33471c2f78f3e148297e