Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit ebd663f5 authored by Lucas Dupin's avatar Lucas Dupin
Browse files

Correctly serialize population

All populations were being set to 0, causing all colors to be wrong.

Test: manual
Bug: 191391779
Bug: 191374703
Change-Id: Id5bef180ca3e6f30e30631781a74b2efb4402ac5
parent 7712f3bc
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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);
            }