fix: 修复“我”页面贴子数显示为回贴数
This commit is contained in:
parent
579131c31f
commit
7adfcf0401
|
|
@ -1,7 +1,7 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<litepal>
|
||||
<dbname value="tblite" />
|
||||
<version value="29" />
|
||||
<version value="30" />
|
||||
<list>
|
||||
<mapping class="com.huanchengfly.tieba.post.models.database.Account" />
|
||||
<mapping class="com.huanchengfly.tieba.post.models.database.Draft" />
|
||||
|
|
|
|||
|
|
@ -105,7 +105,7 @@ class MyInfoFragment : BaseFragment(), View.OnClickListener, CompoundButton.OnCh
|
|||
val account = AccountUtil.getLoginInfo(attachContext)!!
|
||||
followsTextView.text = account.concernNum ?: "0"
|
||||
fansTextView.text = account.fansNum ?: "0"
|
||||
threadsTextView.text = account.postNum ?: "0"
|
||||
threadsTextView.text = account.threadNum ?: "0"
|
||||
userNameTextView.text = account.nameShow
|
||||
contentTextView.text =
|
||||
account.intro ?: attachContext.resources.getString(R.string.tip_no_intro)
|
||||
|
|
@ -125,7 +125,7 @@ class MyInfoFragment : BaseFragment(), View.OnClickListener, CompoundButton.OnCh
|
|||
} else {
|
||||
followsTextView.text = profile.user.concernNum
|
||||
fansTextView.text = profile.user.fansNum
|
||||
threadsTextView.text = profile.user.postNum
|
||||
threadsTextView.text = profile.user.threadNum
|
||||
userNameTextView.text = profile.user.nameShow
|
||||
if (profile.user.intro.isNullOrBlank()) {
|
||||
profile.user.intro = attachContext.resources.getString(R.string.tip_no_intro)
|
||||
|
|
@ -190,6 +190,7 @@ class MyInfoFragment : BaseFragment(), View.OnClickListener, CompoundButton.OnCh
|
|||
sex = profile.user.sex
|
||||
fansNum = profile.user.fansNum
|
||||
postNum = profile.user.postNum
|
||||
threadNum = profile.user.threadNum
|
||||
concernNum = profile.user.concernNum
|
||||
tbAge = profile.user.tbAge
|
||||
age = profile.user.birthdayInfo?.age
|
||||
|
|
|
|||
|
|
@ -15,6 +15,7 @@ data class Account(
|
|||
var sex: String? = null,
|
||||
var fansNum: String? = null,
|
||||
var postNum: String? = null,
|
||||
var threadNum: String? = null,
|
||||
var concernNum: String? = null,
|
||||
var tbAge: String? = null,
|
||||
var age: String? = null,
|
||||
|
|
|
|||
Loading…
Reference in New Issue