OSDN Git Service

Round animation progress for computing size for background
authorAndrii Kulian <akulian@google.com>
Mon, 7 Aug 2017 22:53:44 +0000 (15:53 -0700)
committerAndrii Kulian <akulian@google.com>
Tue, 8 Aug 2017 19:58:43 +0000 (12:58 -0700)
commit58194b579cf9bc9a313ac96316474e9d02b48363
tree6013030922f1df92b3c72cefe9becd4e3f00af5f
parentcbdaf0410122bd3dba7503be92ec8cd4dd286027
Round animation progress for computing size for background

Round background crop animation progress when it's less then
epsilon to match fullscreen size and eliminate a line of couple
pixels high bleeding through from an app underneath. This
happens when animating letterboxed app from recents and can
be visible at the end of animation below nav bar.

Bug: 63156733
Bug: 62893418
Test: go/wm-smoke
Test: Trigger animations to/from recents with different rotations.
Change-Id: Ia4e93c81eac93a886007d53da3a685a69d4cb4de
services/core/java/com/android/server/wm/SurfaceControlWithBackground.java