Implement redraft feature. (#1190)

* Implement "Delete and Edit" feature

* Some changes to ComposeActivity

Support for uploaded medias, sensitive option.

Fix typo.

Change names of some extra keys.

* Use Glide instead of Picasso

* Pass ArrayList instead of json

* Change wording for re-draft

* Fix test
This commit is contained in:
kyori19 2019-04-21 22:16:39 +09:00 committed by Konrad Pozniak
commit 60d6927af6
12 changed files with 178 additions and 63 deletions

View file

@ -95,8 +95,8 @@ class Converters {
}
@TypeConverter
fun jsonToAttachmentList(attachmentListJson: String?): List<Attachment>? {
return gson.fromJson(attachmentListJson, object : TypeToken<List<Attachment>>() {}.type)
fun jsonToAttachmentList(attachmentListJson: String?): ArrayList<Attachment>? {
return gson.fromJson(attachmentListJson, object : TypeToken<ArrayList<Attachment>>() {}.type)
}
@TypeConverter