commit | bf770d72cffd5c1e74007fe792a9042267e3c066 | [log] [tgz] |
---|---|---|
author | Tracy Zhou <tracyzhou@google.com> | Tue May 29 15:36:16 2018 -0700 |
committer | Tracy Zhou <tracyzhou@google.com> | Tue May 29 23:52:07 2018 +0000 |
tree | 8f5a18473c05a163cbca862978319634e9c5e9e0 | |
parent | a8464603ed63f968dfeea079b69b0acb27c7cd2c [diff] |
Fix unwanted PIP window dismissal when moving to the bottom Display#getSize() returns screen size excluding certain system decor elements. We should get a more accurate size using Display#getRealSize() minus bottom inset instead for calculating whether the PIP window should be dismissed. Fixes: 80367557 Test: atest CtsActivityManagerDeviceTestCases:ActivityManagerPinnedStackTests and manual test Change-Id: I20cd8ccfa53bd7cc1cb7176280a01dbcb64b5745