Skip to content
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

Merged
merged 6 commits into from
Apr 21, 2019
Merged

Implement redraft feature. #1190

merged 6 commits into from
Apr 21, 2019

Conversation

kyori19
Copy link
Contributor

@kyori19 kyori19 commented Apr 12, 2019

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.

Copy link
Collaborator

@connyduck connyduck left a 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)
Copy link
Collaborator

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.

Suggested change
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);
Copy link
Collaborator

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.

@@ -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>
Copy link
Collaborator

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

@kyori19
Copy link
Contributor Author

kyori19 commented Apr 21, 2019

@connyduck Fixed all! Please check them.

@connyduck
Copy link
Collaborator

Looks good, but now the tests are failing, you have to change them from List to ArrayList as well

@kyori19
Copy link
Contributor Author

kyori19 commented Apr 21, 2019

@connyduck Fixed and test was passed.

@connyduck connyduck merged commit 60d6927 into tuskyapp:master Apr 21, 2019
@kyori19 kyori19 deleted the redraft branch April 21, 2019 13:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add support for "delete and redraft"
2 participants