From 2b6762f868837d9538721672ae8ca39723140f89 Mon Sep 17 00:00:00 2001 From: Mariotaku Lee Date: Sun, 7 Jun 2015 12:24:53 +0800 Subject: [PATCH] fixed update profile --- .../mariotaku/twidere/api/twitter/model/ProfileUpdate.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/twidere.component.common/src/main/java/org/mariotaku/twidere/api/twitter/model/ProfileUpdate.java b/twidere.component.common/src/main/java/org/mariotaku/twidere/api/twitter/model/ProfileUpdate.java index 6493466af..1847f6906 100644 --- a/twidere.component.common/src/main/java/org/mariotaku/twidere/api/twitter/model/ProfileUpdate.java +++ b/twidere.component.common/src/main/java/org/mariotaku/twidere/api/twitter/model/ProfileUpdate.java @@ -21,6 +21,8 @@ package org.mariotaku.twidere.api.twitter.model; import org.mariotaku.restfu.http.SimpleValueMap; +import java.util.Locale; + /** * Created by mariotaku on 15/1/6. */ @@ -43,7 +45,7 @@ public class ProfileUpdate extends SimpleValueMap { } public void setLinkColor(int profileLinkColor) { - put("profile_link_color", profileLinkColor); + put("profile_link_color", String.format(Locale.ROOT, "%06X", 0xFFFFFF & profileLinkColor)); } public ProfileUpdate name(String name) {