fix: 修复收藏贴子错误

This commit is contained in:
HuanChengFly 2021-02-03 09:53:41 +08:00
parent e924cb3c36
commit 8bbef9d8e7
1 changed files with 1 additions and 1 deletions

View File

@ -866,7 +866,7 @@ class ThreadActivity : BaseActivity(), View.OnClickListener, ThreadMenuFragment.
override fun onToggleCollect(collect: Boolean) {
if (dataBean != null) {
if (collect) {
if (!collect) {
TiebaApi.getInstance().removeStore(threadId!!, dataBean!!.anti?.tbs!!).enqueue(object : Callback<CommonResponse> {
override fun onFailure(call: Call<CommonResponse>, t: Throwable) {
Toast.makeText(this@ThreadActivity, getString(R.string.toast_collect_remove_error, t.message), Toast.LENGTH_SHORT).show()