fix note not displaying correctly in EditProfileActivity
This commit is contained in:
parent
8bca651f53
commit
21344866d3
|
@ -139,7 +139,7 @@ class EditProfileActivity : BaseActivity(), Injectable {
|
||||||
}
|
}
|
||||||
val me = response.body()
|
val me = response.body()
|
||||||
oldDisplayName = me!!.displayName
|
oldDisplayName = me!!.displayName
|
||||||
oldNote = me.note.toString()
|
oldNote = me.source?.note
|
||||||
oldLocked = me.locked
|
oldLocked = me.locked
|
||||||
|
|
||||||
displayNameEditText.setText(oldDisplayName)
|
displayNameEditText.setText(oldDisplayName)
|
||||||
|
|
|
@ -38,7 +38,9 @@ data class Account(
|
||||||
val locked: Boolean = false,
|
val locked: Boolean = false,
|
||||||
@SerializedName("followers_count") val followersCount: Int,
|
@SerializedName("followers_count") val followersCount: Int,
|
||||||
@SerializedName("following_count") val followingCount: Int,
|
@SerializedName("following_count") val followingCount: Int,
|
||||||
@SerializedName("statuses_count") val statusesCount: Int
|
@SerializedName("statuses_count") val statusesCount: Int,
|
||||||
|
val source: AccountSource?
|
||||||
|
|
||||||
) : Parcelable {
|
) : Parcelable {
|
||||||
|
|
||||||
val name: String
|
val name: String
|
||||||
|
@ -67,3 +69,10 @@ data class Account(
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Parcelize
|
||||||
|
data class AccountSource(
|
||||||
|
val privacy: Status.Visibility,
|
||||||
|
val sensitive: Boolean,
|
||||||
|
val note: String
|
||||||
|
): Parcelable
|
Loading…
Reference in New Issue