OSDN Git Service

Don't log bad surface size before layout is done.
authorFilip Gruszczynski <gruszczy@google.com>
Sat, 12 Dec 2015 01:41:23 +0000 (17:41 -0800)
committerFilip Gruszczynski <gruszczy@google.com>
Sat, 12 Dec 2015 01:43:55 +0000 (17:43 -0800)
commit96b906f57723e9a829dd2b4fdeaa29a3f0d72ba5
tree69d27b2eee414692b961df7a4bd6f10013d65dba
parentee15241aaf9e3c38d2d0966f4b59b43284622d32
Don't log bad surface size before layout is done.

The surface dimensions are calculated when the surface is created.
This might happen before the window had a chance to relayout itself,
so the dimensions passed to the surface will be wrong. This doesn't
happen on subsequent recreations of the surface, because the window
has previous dimensions, but will produce a bad log when the surface
is first created.

Bug: 26061934
Change-Id: I670bbb6d64f5ec7efabe3bd838a116a1d48e74f2
services/core/java/com/android/server/wm/WindowStateAnimator.java