diff options
| author | Sally Qi <sallyqi@google.com> | 2021-07-29 04:07:09 +0000 |
|---|---|---|
| committer | Sally Qi <sallyqi@google.com> | 2021-08-03 17:23:56 -0700 |
| commit | 9df984da937e35591aa945fee9535444547643e9 (patch) | |
| tree | 02660320aec32561eaa3e5fc04ea3bf03b5cce80 /core/java/android/util/SparseArrayMap.java | |
| parent | f875ee8518a040993e672741cb46bc7b9a3a34ec (diff) | |
Fix reference issue from the Theme and XML color in Gradient Drawable by
1. Change mGradientColors to a ColorStateList array
2. Update mGradientColors array by reading the Theme and XML color in UpdateGradientDrawableGradient function
3. Query state color in each instance of mGradientColors array in
ensureValidRect function for LinearGradient object creation.
Bug: 157969624
Test: android.graphics.drawable.cts.GradientDrawableTest suite
Change-Id: Ibbf2c5cb2846d75c53bd34a3f04661ae604e6745
Diffstat (limited to 'core/java/android/util/SparseArrayMap.java')
0 files changed, 0 insertions, 0 deletions
