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

Commit 86c300e7 authored by Catherine Liang's avatar Catherine Liang
Browse files

Fix color logging crash

Bug: 309005949
Test: manually tested different wallpaper & other color options
Flag: NONE
Change-Id: I511c78a12aec1c7544c75ad7c5034c1c7d739012
parent f263efdb
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -112,6 +112,9 @@ public abstract class ColorOption implements CustomizationOption<ColorOption> {
        if (seedColor == null || seedColor.isEmpty()) {
            return ThemesUserEventLogger.NULL_SEED_COLOR;
        }
        if (!seedColor.startsWith("#")) {
            seedColor = "#" + seedColor;
        }
        return Color.parseColor(seedColor);
    }

+2 −2
Original line number Diff line number Diff line
@@ -130,7 +130,7 @@ class ColorPickerViewModelTest {
                    repository.buildWallpaperOption(
                        ColorOptionsProvider.COLOR_SOURCE_LOCK,
                        Style.EXPRESSIVE,
                        "#121212"
                        "121212"
                    )
                ),
                listOf(repository.buildPresetOption(Style.FRUIT_SALAD, "#ABCDEF")),
@@ -161,7 +161,7 @@ class ColorPickerViewModelTest {
                    repository.buildWallpaperOption(
                        ColorOptionsProvider.COLOR_SOURCE_LOCK,
                        Style.EXPRESSIVE,
                        "#121212"
                        "121212"
                    )
                ),
                listOf(repository.buildPresetOption(Style.FRUIT_SALAD, "#ABCDEF")),