From 7fae39280ed66a97f0bfc298caeaba915ebdfa36 Mon Sep 17 00:00:00 2001 From: Damyan Ivanov Date: Fri, 17 Apr 2020 22:22:17 +0300 Subject: [PATCH] explicit parseInt --- .../java/net/ktnx/mobileledger/model/MobileLedgerProfile.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/net/ktnx/mobileledger/model/MobileLedgerProfile.java b/app/src/main/java/net/ktnx/mobileledger/model/MobileLedgerProfile.java index 8c1f1e5a..ae09f6d9 100644 --- a/app/src/main/java/net/ktnx/mobileledger/model/MobileLedgerProfile.java +++ b/app/src/main/java/net/ktnx/mobileledger/model/MobileLedgerProfile.java @@ -423,7 +423,7 @@ public final class MobileLedgerProfile { return this.themeHue; } public void setThemeHue(Object o) { - setThemeId(Integer.valueOf(String.valueOf(o))); + setThemeId(Integer.parseInt(String.valueOf(o))); } public void setThemeId(int themeHue) { // debug("profile", String.format("Profile.setThemeHue(%d) called", themeHue)); -- 2.39.5