修改帖子再次编辑修改成功后的闪退问题
This commit is contained in:
@ -18,10 +18,7 @@ import com.gh.base.fragment.BaseDialogFragment
|
||||
import com.gh.base.fragment.BaseDialogWrapperFragment
|
||||
import com.gh.base.fragment.BaseFragment
|
||||
import com.gh.common.AppExecutor
|
||||
import com.gh.common.util.DisplayUtils
|
||||
import com.gh.common.util.NotificationHelper
|
||||
import com.gh.common.util.TextHelper
|
||||
import com.gh.common.util.dip2px
|
||||
import com.gh.common.util.*
|
||||
import com.gh.gamecenter.R
|
||||
import com.gh.gamecenter.entity.NotificationUgc
|
||||
import com.gh.gamecenter.qa.article.detail.ArticleDetailActivity
|
||||
@ -67,8 +64,12 @@ class ArticleTagsSelectFragment : BaseFragment<String>() {
|
||||
val intent = Intent()
|
||||
mViewModel?.detailEntity?.me?.articleDraft = null
|
||||
intent.putExtra(ArticleDetailEntity::class.java.simpleName, mViewModel?.detailEntity)
|
||||
intent.putExtra("article_id", JSONObject(it).optString("_id"))
|
||||
intent.putExtra("community_id", mViewModel?.mSelectCommunityData?.id)
|
||||
if (mViewModel?.detailEntity == null) {
|
||||
tryWithDefaultCatch {
|
||||
intent.putExtra("article_id", JSONObject(it).optString("_id"))
|
||||
intent.putExtra("community_id", mViewModel?.mSelectCommunityData?.id)
|
||||
}
|
||||
}
|
||||
activity?.setResult(Activity.RESULT_OK, intent)
|
||||
} else {
|
||||
activity?.setResult(Activity.RESULT_OK)
|
||||
|
||||
Reference in New Issue
Block a user