fix: 修复收藏贴子错误
This commit is contained in:
parent
e924cb3c36
commit
8bbef9d8e7
|
|
@ -866,7 +866,7 @@ class ThreadActivity : BaseActivity(), View.OnClickListener, ThreadMenuFragment.
|
||||||
|
|
||||||
override fun onToggleCollect(collect: Boolean) {
|
override fun onToggleCollect(collect: Boolean) {
|
||||||
if (dataBean != null) {
|
if (dataBean != null) {
|
||||||
if (collect) {
|
if (!collect) {
|
||||||
TiebaApi.getInstance().removeStore(threadId!!, dataBean!!.anti?.tbs!!).enqueue(object : Callback<CommonResponse> {
|
TiebaApi.getInstance().removeStore(threadId!!, dataBean!!.anti?.tbs!!).enqueue(object : Callback<CommonResponse> {
|
||||||
override fun onFailure(call: Call<CommonResponse>, t: Throwable) {
|
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()
|
Toast.makeText(this@ThreadActivity, getString(R.string.toast_collect_remove_error, t.message), Toast.LENGTH_SHORT).show()
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue