diff options
author | Bharadwaj Narasimha <bnarasimha@cyngn.com> | 2016-08-08 11:43:00 -0700 |
---|---|---|
committer | Gerrit Code Review <gerrit@cyanogenmod.org> | 2016-08-09 14:54:51 -0700 |
commit | 4910bb1c785d7ec748f185f902ddd750dcb9dfcb (patch) | |
tree | c15194d86016622990d9c3d3e69c049f5590f965 /core/java | |
parent | 740c202ab997dbfd415c12f6ac769db09ad8ce9e (diff) | |
download | frameworks_base-4910bb1c785d7ec748f185f902ddd750dcb9dfcb.zip frameworks_base-4910bb1c785d7ec748f185f902ddd750dcb9dfcb.tar.gz frameworks_base-4910bb1c785d7ec748f185f902ddd750dcb9dfcb.tar.bz2 |
IconPackHelper:Use un-tinted iconback when no defaultSwatchcolor is specified
After applying the theme which supports paletteback feature and if there is
no defaultSwatchColor specified then the background should go to the
original color. Instead in a particular FootballDemo theme the theme
would never get applied and just flood the logcat with null exceptions
for each and every app.
TICKET:CYNGNOS-2942
Change-Id: If2bd3d23ab5075dac1d8ff3f197cebc28c9c1f20
Diffstat (limited to 'core/java')
-rw-r--r-- | core/java/android/app/ComposedIconInfo.java | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/core/java/android/app/ComposedIconInfo.java b/core/java/android/app/ComposedIconInfo.java index f49c230..71321c1 100644 --- a/core/java/android/app/ComposedIconInfo.java +++ b/core/java/android/app/ComposedIconInfo.java @@ -74,11 +74,9 @@ public class ComposedIconInfo implements Parcelable { iconPaletteBack = source.readInt(); swatchType = SwatchType.values()[source.readInt()]; int numDefaultColors = source.readInt(); - if (numDefaultColors > 0) { - defaultSwatchColors = new int[numDefaultColors]; - for (int i = 0; i < numDefaultColors; i++) { - defaultSwatchColors[i] = source.readInt(); - } + defaultSwatchColors = new int[numDefaultColors]; + for (int i = 0; i < numDefaultColors; i++) { + defaultSwatchColors[i] = source.readInt(); } } |