1
0
mirror of https://github.com/tateisu/SubwayTooter synced 2024-12-27 09:23:36 +01:00

下書きの保存時に公開範囲をIDで保存する

This commit is contained in:
tateisu 2018-08-21 03:00:32 +09:00
parent eb67f39969
commit 438adeee24

View File

@ -2001,7 +2001,7 @@ class ActPost : AppCompatActivity(), View.OnClickListener, PostAttachment.Callba
json.put(DRAFT_CONTENT_WARNING, content_warning)
json.put(DRAFT_CONTENT_WARNING_CHECK, cbContentWarning.isChecked)
json.put(DRAFT_NSFW_CHECK, cbNSFW.isChecked)
json.put(DRAFT_VISIBILITY, visibility)
visibility?.let{ json.put(DRAFT_VISIBILITY, it.id.toString()) }
json.put(DRAFT_ACCOUNT_DB_ID, account?.db_id ?: - 1L)
json.put(DRAFT_ATTACHMENT_LIST, tmp_attachment_list)
in_reply_to_id?.putTo(json, DRAFT_REPLY_ID)