summaryrefslogtreecommitdiff
path: root/rs/java/android/renderscript/ProgramFragmentFixedFunction.java
diff options
context:
space:
mode:
authorEvan Rosky <erosky@google.com>2020-08-18 13:52:04 -0700
committerEvan Rosky <erosky@google.com>2020-08-19 17:44:44 +0000
commit6212e2a6d0e54e4e179383db1f64ff0cdcccdd27 (patch)
tree3da95ec7ffb6c6742e94e062f6d2da952a293d0f /rs/java/android/renderscript/ProgramFragmentFixedFunction.java
parent1706f9c22fc66763aba2adeddefdb1ca93772310 (diff)
Fix screenlayout calculation with overridden screenW/Hdp
Split-screen adjust-for-ime overrides screenW/Hdp in order to prevent the app-configuration from changing. However, the logic in Task#computeConfigResourceOverrides was ignoring the overrides and blindly using the display's non-decor bounds. This means that on loong screens, the app will flip into/out-of long layout when adjusting (non-adjusted task has no screenSizeDp overrides so it goes through logic which crops mTmpNonDecorBounds). Fix this by honoring the screenW/Hdp overrides when calculating screenLayout. Bug: 163848060 Test: On long screen (eg 21:9 aspect), open ime in second split. Also added regression unit-test. Change-Id: I0fcec4f035e466fafedc31be5925c0b04a6580f7 Merged-In: I0fcec4f035e466fafedc31be5925c0b04a6580f7
Diffstat (limited to 'rs/java/android/renderscript/ProgramFragmentFixedFunction.java')
0 files changed, 0 insertions, 0 deletions