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