]> git.ktnx.net Git - mobile-ledger.git/commitdiff
explicit parseInt
authorDamyan Ivanov <dam+mobileledger@ktnx.net>
Fri, 17 Apr 2020 19:22:17 +0000 (22:22 +0300)
committerDamyan Ivanov <dam+mobileledger@ktnx.net>
Fri, 17 Apr 2020 19:22:17 +0000 (22:22 +0300)
app/src/main/java/net/ktnx/mobileledger/model/MobileLedgerProfile.java

index 8c1f1e5a38186861541c47e353b5aed8e0122c64..ae09f6d9b5b805893186a639eca76325690e98b7 100644 (file)
@@ -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));