mirror of
https://github.com/TwidereProject/Twidere-Android
synced 2025-02-07 15:28:51 +01:00
fixed login color
This commit is contained in:
parent
b9fc3813de
commit
f138bf2191
@ -112,7 +112,7 @@ public class ParcelableUserUtils implements TwidereConstants {
|
||||
return result;
|
||||
}
|
||||
|
||||
private static int parseColor(@Nullable String colorString) {
|
||||
public static int parseColor(@Nullable String colorString) {
|
||||
if (colorString == null) return 0;
|
||||
if (!colorString.startsWith("#")) {
|
||||
colorString = "#" + colorString;
|
||||
|
@ -28,7 +28,6 @@ import android.content.Context
|
||||
import android.content.DialogInterface
|
||||
import android.content.Intent
|
||||
import android.content.res.ColorStateList
|
||||
import android.graphics.Color
|
||||
import android.net.Uri
|
||||
import android.os.AsyncTask
|
||||
import android.os.Bundle
|
||||
@ -514,7 +513,7 @@ class SignInActivity : BaseActivity(), OnClickListener, TextWatcher {
|
||||
@Throws(MicroBlogException::class)
|
||||
internal fun analyseUserProfileColor(user: User?): Int {
|
||||
if (user == null) throw MicroBlogException("Unable to get user info")
|
||||
return ParseUtils.parseColor("#" + user.profileLinkColor, Color.TRANSPARENT)
|
||||
return ParcelableUserUtils.parseColor(user.profileLinkColor)
|
||||
}
|
||||
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user