From: Damyan Ivanov Date: Fri, 17 Apr 2020 19:22:17 +0000 (+0300) Subject: explicit parseInt X-Git-Tag: v0.12.0~49 X-Git-Url: https://git.ktnx.net/?a=commitdiff_plain;h=7fae39280ed66a97f0bfc298caeaba915ebdfa36;p=mobile-ledger.git explicit parseInt --- 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));