Merge "Correctly serialize population" into sc-dev am: ba23b84687
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15081291 Change-Id: If6cedd178266ae97d6a631c02dd9673602adbd3a
This commit is contained in:
@@ -420,7 +420,7 @@ public final class WallpaperColors implements Parcelable {
|
|||||||
for (Map.Entry<Integer, Integer> colorEntry : mAllColors.entrySet()) {
|
for (Map.Entry<Integer, Integer> colorEntry : mAllColors.entrySet()) {
|
||||||
if (colorEntry.getKey() != null) {
|
if (colorEntry.getKey() != null) {
|
||||||
dest.writeInt(colorEntry.getKey());
|
dest.writeInt(colorEntry.getKey());
|
||||||
Integer population = mAllColors.get(colorEntry.getValue());
|
Integer population = colorEntry.getValue();
|
||||||
int populationInt = (population != null) ? population : 0;
|
int populationInt = (population != null) ? population : 0;
|
||||||
dest.writeInt(populationInt);
|
dest.writeInt(populationInt);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user