-
Notifications
You must be signed in to change notification settings - Fork 759
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
Feature/attachments #619
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.
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> { |
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.
Create a data class to avoid using generic pair? (give sense to first and second)
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.
This is just a utility method, I don't think it's worth it
vector/src/main/java/im/vector/riotx/features/share/IncomingShareActivity.kt
Show resolved
Hide resolved
vector/src/main/java/im/vector/riotx/features/share/IncomingShareActivity.kt
Outdated
Show resolved
Hide resolved
vector/src/main/java/im/vector/riotx/features/attachments/AttachmentsHelper.kt
Outdated
Show resolved
Hide resolved
…iewState and should be provided globally (IE, from application state)
vector/src/main/java/im/vector/riotx/features/share/IncomingShareActivity.kt
Outdated
Show resolved
Hide resolved
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.
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 |
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.
Let the activity manages KeyboardStateUtils?
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 prefer not!
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.
why?
vector/src/main/java/im/vector/riotx/features/attachments/ContactAttachment.kt
Outdated
Show resolved
Hide resolved
vector/src/main/java/im/vector/riotx/features/home/room/filtered/FilteredRoomsActivity.kt
Show resolved
Hide resolved
I've added some remarks. |
vector/src/main/java/im/vector/riotx/features/home/room/detail/RoomDetailFragment.kt
Show resolved
Hide resolved
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. |
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.
Thanks for the update. Sending sticker from the keyboard works well and will be appreciated by the users, great work!
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:
