diff options
author | arthurhung <arthurhung@google.com> | 2020-04-23 15:30:21 +0800 |
---|---|---|
committer | arthurhung <arthurhung@google.com> | 2020-04-27 11:18:18 +0800 |
commit | d3b0e54819a2823f8dfe1ab4bafec2038959e7a9 (patch) | |
tree | 2b944ef4fa1953ae84fcccb25a34223d02bab8ac /tools/aapt2/java/JavaClassGenerator.cpp | |
parent | d8759bb38daf7f7ed9d84c704734c9e3a15618be (diff) |
Prevent divided by zero if animation is disable
Developer could disable window animation in developer options,
but it could lead to system crash because the transform values
may divid duration time which is set to zero.
Bug: 154894010
Test: disable animation, open simlated display, resize
Change-Id: I550c309d9f684e2a5a50b4d6812703dd20a179b5
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator.cpp')
0 files changed, 0 insertions, 0 deletions