Merge "Correctly serialize population" into sc-dev
This commit is contained in:
@@ -420,7 +420,7 @@ public final class WallpaperColors implements Parcelable {
|
||||
for (Map.Entry<Integer, Integer> colorEntry : mAllColors.entrySet()) {
|
||||
if (colorEntry.getKey() != null) {
|
||||
dest.writeInt(colorEntry.getKey());
|
||||
Integer population = mAllColors.get(colorEntry.getValue());
|
||||
Integer population = colorEntry.getValue();
|
||||
int populationInt = (population != null) ? population : 0;
|
||||
dest.writeInt(populationInt);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user