diff options
author | Kensuke Matsui <kensuke.matsui@sony.com> | 2017-07-05 14:53:05 +0900 |
---|---|---|
committer | Yoshinori Hirano <Yoshinori.Hirano@sonymobile.com> | 2017-09-07 10:43:00 +0000 |
commit | 5a58cf92b7861a30898032558d517b9dc72e1184 (patch) | |
tree | 2fb3364ffd7fafd9aae6234ab4f9aff6ddfdb79e /tools/aapt2/java/JavaClassGenerator.cpp | |
parent | 94f1fd0da2638661d831d9034117a334a675983b (diff) |
Avoid race condition during grayscale animation of QS tile
DrawableIcon returns the same instance of its Drawable
for both getDrawable() and getInvisibleDrawable().
This could cause a race condition during grayscale animation
of a QS tile which uses the same icon for both ON and OFF state.
Clone the original Drawable and use it for invisible drawable
to solve this.
Fixes: 65437135
Test: manual - put a custom tile at the first position of QS panel
and tap it
Change-Id: Ie74edd9c5e58118a70b5abd8096cdd1297940ef5
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator.cpp')
0 files changed, 0 insertions, 0 deletions