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

Commit 5e4c7892 authored by Treehugger Robot's avatar Treehugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Use BindSource.valueOf() instead of Enum.valueOf()" into main

parents 1976f4a1 1ff3eed5
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -397,7 +397,7 @@ public class WallpaperDataParser {
        wallpaper.mWallpaperDimAmount = getAttributeFloat(parser, "dimAmount", 0f);
        BindSource bindSource;
        try {
            bindSource = Enum.valueOf(BindSource.class,
            bindSource = BindSource.valueOf(
                    getAttributeString(parser, "bindSource", BindSource.UNKNOWN.name()));
        } catch (IllegalArgumentException | NullPointerException e) {
            bindSource = BindSource.UNKNOWN;