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

Image Message Orientation Bug Fix #177

Closed
wants to merge 2 commits into from
Closed

Image Message Orientation Bug Fix #177

wants to merge 2 commits into from

Conversation

howawong
Copy link
Contributor

@howawong howawong commented Mar 8, 2018

  • Cause: due to EXIF orientation not well supported in picasso
  • Refactor matrixFromRotation in ImageUtils
  • Support "orientation" key value in ImageLoader
  • Pass orientation to ImageMessage in
    ConversationFragment.sendImageMessage
  • Transform image to desired orientation in ImagePreviewActivity

Connects #161

- Cause: due to EXIF orientation not well supported in picasso
- Refactor matrixFromRotation in ImageUtils
- Support "orientation" key value in ImageLoader
- Pass orientation to ImageMessage in
  ConversationFragment.sendImageMessage
- Transform image to desired orientation in ImagePreviewActivity

Connects #161
@@ -391,12 +391,12 @@ open class ConversationFragment() :
/**
* This function is for receiving new message and sending new message.
*/
private fun addMessageToBottom(message: ChatMessage, uri: Uri? = null) {
private fun addMessageToBottom(message: ChatMessage, uri: Uri? = null, orientation: Int? = null) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Adding orientation in ConversationFragment and ConversationView message functions look a bit strange as orientation is for image only, those functions should be generic for adding all message type. Besides that, this PR looks good for me.

- Moving message conversation logic and parameters from ConversationView to ConversationFragment

Connects #177
@howawong howawong closed this Mar 15, 2018
@howawong howawong deleted the image-rotation-bug-fix branch March 15, 2018 04:26
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.

2 participants