-
-
Notifications
You must be signed in to change notification settings - Fork 381
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Implement redraft feature. #1190
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Wow this is awesome, it works really good
if (preview != null) { | ||
view.setImageBitmap(preview); | ||
} else { | ||
Picasso.with(this) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
on master we switched to Glide.
Picasso.with(this) | |
Glide.with(this) |
@@ -1880,6 +1939,10 @@ public Intent build(Context context) { | |||
if (replyingStatusAuthor != null) { | |||
intent.putExtra(REPLYING_STATUS_AUTHOR_USERNAME_EXTRA, replyingStatusAuthor); | |||
} | |||
if (jsonMediaAttachments != null) { | |||
intent.putExtra(JSON_MEDIA_ATTACHMENTS_EXTRA, jsonMediaAttachments); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would rather use intent.putParcelableArrayListExtra(
and put in the list of attachments. Shorter and probably faster than de/serializing with Gson.
app/src/main/res/values/strings.xml
Outdated
@@ -83,6 +83,7 @@ | |||
<string name="action_show_reblogs">Show boosts</string> | |||
<string name="action_report">Report</string> | |||
<string name="action_delete">Delete</string> | |||
<string name="delete_and_edit">Delete and Edit</string> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would call it Delete and re-draft
to be consistent with web mastodon
Support for uploaded medias, sensitive option. Fix typo. Change names of some extra keys.
@connyduck Fixed all! Please check them. |
Looks good, but now the tests are failing, you have to change them from |
@connyduck Fixed and test was passed. |
Close #705
Cherry-picked some changes to ComposeActivity from #1004 because it's needed for uploaded media support.
As I mentioned at #1171, this PR contains supports for uploaded medias and mentions to remote instances.