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

Feature/attachments #619

Merged
merged 23 commits into from
Oct 23, 2019
Merged

Feature/attachments #619

merged 23 commits into from
Oct 23, 2019

Conversation

ganfra
Copy link
Member

@ganfra ganfra commented Oct 11, 2019

This PR removes the use of inner picker by using system picking mechanisms.
It's just the beginning of the work for handling media, we should handle in the future:
- Preview of media
- Allow to compress image
- Handle video encoding

Preview:
Screenshot_20191011-171405

@bmarty bmarty added this to the sprint4 milestone Oct 11, 2019
@ganfra ganfra requested a review from bmarty October 11, 2019 15:24
Copy link
Member

@bmarty bmarty left a comment

Choose a reason for hiding this comment

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

Some remarks

@@ -48,3 +48,10 @@ fun EditText.showPassword(visible: Boolean, updateCursor: Boolean = true) {
}
if (updateCursor) setSelection(text?.length ?: 0)
}

fun View.getMeasurements(): Pair<Int, Int> {
Copy link
Member

Choose a reason for hiding this comment

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

Create a data class to avoid using generic pair? (give sense to first and second)

Copy link
Member Author

Choose a reason for hiding this comment

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

This is just a utility method, I don't think it's worth it

@ganfra ganfra requested a review from bmarty October 18, 2019 09:45
Copy link
Member

@bmarty bmarty left a comment

Choose a reason for hiding this comment

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

Thanks for the update, I've mark as resolved remarks that have been handled. Please consider the remaining ones

@@ -192,9 +196,12 @@ class RoomDetailFragment :

private lateinit var actionViewModel: ActionsHandler
private lateinit var layoutManager: LinearLayoutManager
private lateinit var attachmentsHelper: AttachmentsHelper
private lateinit var keyboardStateUtils: KeyboardStateUtils
Copy link
Member

Choose a reason for hiding this comment

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

Let the activity manages KeyboardStateUtils?

Copy link
Member Author

Choose a reason for hiding this comment

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

I prefer not!

Copy link
Member

Choose a reason for hiding this comment

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

why?

@bmarty
Copy link
Member

bmarty commented Oct 18, 2019

I've added some remarks.
Also, is it possible to handle correctly the share intent from the Google keyboard? for instance Gif/image/etc., as discussed IRL. it should send the data directly to the room and not open the room picker.
Thanks!

@bmarty
Copy link
Member

bmarty commented Oct 21, 2019

Also if you refuse the contact permission once, the next time you try to share a contact, a dialog is displayed with a wrong explanation of why the app needs the contact permission.

@ganfra ganfra requested a review from bmarty October 22, 2019 15:13
Copy link
Member

@bmarty bmarty left a comment

Choose a reason for hiding this comment

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

Thanks for the update. Sending sticker from the keyboard works well and will be appreciated by the users, great work!

@bmarty bmarty merged commit 70a14f6 into develop Oct 23, 2019
@bmarty bmarty deleted the feature/attachments branch October 23, 2019 08:10
@bmarty bmarty mentioned this pull request Oct 30, 2019
1 task
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