fixed update profile

This commit is contained in:
Mariotaku Lee 2015-06-07 12:24:53 +08:00
parent 5e3e49f8f0
commit 2b6762f868
1 changed files with 3 additions and 1 deletions

View File

@ -21,6 +21,8 @@ package org.mariotaku.twidere.api.twitter.model;
import org.mariotaku.restfu.http.SimpleValueMap; import org.mariotaku.restfu.http.SimpleValueMap;
import java.util.Locale;
/** /**
* Created by mariotaku on 15/1/6. * Created by mariotaku on 15/1/6.
*/ */
@ -43,7 +45,7 @@ public class ProfileUpdate extends SimpleValueMap {
} }
public void setLinkColor(int profileLinkColor) { 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) { public ProfileUpdate name(String name) {