OSDN Git Service

Recents TV: Do not allow negative delay
authorSid Soundararajan <ssoundar@google.com>
Wed, 5 Oct 2016 17:30:32 +0000 (10:30 -0700)
committerSid Soundararajan <ssoundar@google.com>
Wed, 5 Oct 2016 17:30:32 +0000 (10:30 -0700)
commita4a4763f5857ed39d6e4dae263ee9dc01eec756a
tree2d06f60ead815049966932e10f9bf8b84bc6344d
parentc65dc5529e72b8dfdb72b6d8739489ea68653000
Recents TV: Do not allow negative delay

In rare cases, the getChildCount() has a delayed update. It enters the
for loop, and then changes to return 0. This can potentially allow
a negative delay, causing a crash.

BUG: 31933255
Change-Id: Ia245edc9fca0e1712c2af5c301bac632caed1568
packages/SystemUI/src/com/android/systemui/recents/tv/animations/HomeRecentsEnterExitAnimationHolder.java