Commit graph

53 commits

Author SHA1 Message Date
Benoit Marty
ce09aac59d Add audio file support in the gallery and in the media viewer.
Make MediaPlayerControllerView compatible to control audio playback
2024-12-13 09:45:45 +01:00
Benoit Marty
da272ddb07 Implement month separator for the Gallery.
Improve day separator rendering in the timeline.
Use Today, Yesterday, and the name of the day if less than 7 days and do not render the year for the current year.
Improve date format for the media viewer.
Rework how date and time are computed.
ActionListView: Time can take more space, so update the layout.
2024-12-11 23:57:57 +01:00
Benoit Marty
0113a52c66 Fix test.
I'll iterate on the various date format in a separate PR.
2024-12-11 09:55:04 +01:00
Benoit Marty
1c691d2433 Add unit test on MediaItemsPostProcessor 2024-12-10 16:57:41 +01:00
Benoit Marty
ec821bb9c7 Order imports. 2024-12-10 15:58:44 +01:00
Benoit Marty
bb06b68110 Let the Presenter use real classes. 2024-12-10 15:56:54 +01:00
Benoit Marty
1b7d3a33b7 Add test on DefaultEventItemFactory 2024-12-10 15:16:41 +01:00
Benoit Marty
e5b34216e9 Media timeline: improve pagination logic. 2024-12-10 15:11:53 +01:00
Benoit Marty
36eceb75e8 Move bottom state to the View state 2024-12-10 13:38:28 +01:00
Benoit Marty
db0bca9721 Improve preview. 2024-12-10 13:10:25 +01:00
Benoit Marty
f314c25039 Iterate on Error rendering. 2024-12-10 13:04:53 +01:00
Benoit Marty
6fbd343076 Introduce GroupedMediaItems for code clarity 2024-12-10 13:01:33 +01:00
Benoit Marty
893c152272 Add missing previews 2024-12-10 12:28:42 +01:00
Benoit Marty
0f43e7c1b8 More formatting 2024-12-10 10:42:23 +01:00
Benoit Marty
6dbfa94a71 Fix test. 2024-12-10 09:56:08 +01:00
Benoit Marty
cce1c9974a Format file. 2024-12-10 09:28:46 +01:00
Benoit Marty
a89a9c35d8 Remove not needed MediaGalleryTimelineProvider 2024-12-10 09:24:31 +01:00
Benoit Marty
a40aff6618 Change scope to RoomScope 2024-12-10 09:04:14 +01:00
Benoit Marty
e55e977950 Remove TimelineMediaItemsCacheInvalidator, it is not needed. 2024-12-10 09:01:42 +01:00
Benoit Marty
323ae0ad2e Rename imageItems to imageAndVideoItems. 2024-12-10 08:57:36 +01:00
Benoit Marty
197fda5d0e Rename onDone to onBackClick. 2024-12-10 08:51:43 +01:00
Benoit Marty
ae0593d555 Rename preview. 2024-12-10 08:07:12 +01:00
Benoit Marty
73143d88c0 Fix preview 2024-12-09 17:52:59 +01:00
Benoit Marty
d81859705d Fix preview. 2024-12-09 17:34:52 +01:00
Benoit Marty
653c1e8214 Sync strings. 2024-12-09 17:16:29 +01:00
Benoit Marty
3e1b1c29d1 Media Gallery 2024-12-09 16:48:48 +01:00
Benoit Marty
5a8aabdb4d MediaViewer: Show divider above the caption only if there is a caption and the media is video (to have a divider with the video controller) 2024-12-06 10:19:19 +01:00
Benoit Marty
9c02c4cfde MediaViewer: Align title to left and move action bottom to top bar. 2024-12-06 10:02:16 +01:00
Benoit Marty
71e0ff7342
Merge pull request #3979 from element-hq/feature/bma/mediaCaption
MediaViewer: iterate on design
2024-12-03 13:03:15 +01:00
Benoit Marty
92975e83b6 Fix detekt issues. 2024-12-03 09:26:16 +01:00
Benoit Marty
70faf229cb Fix modifier issue. 2024-12-02 18:09:29 +01:00
Benoit Marty
3c5454f0b7 Add Divider 2024-12-02 17:39:00 +01:00
Benoit Marty
3f9621e4af Video player: Iterate on Play/Pause button 2024-12-02 17:38:59 +01:00
Benoit Marty
1f61be8f86 Improve preview. 2024-12-02 17:38:58 +01:00
Benoit Marty
3b5b443cbb MediaViewer: iterate on design 2024-12-02 17:05:44 +01:00
Benoit Marty
1ee8676b19 Do not auto-play videos. 2024-12-02 14:46:56 +01:00
Benoit Marty
1b10aa4f8f Exclude ExoPlayerForPreview from coverage metrics. 2024-12-02 09:07:08 +01:00
Benoit Marty
d37ec23fa9 Fix preview rendering 2024-11-29 11:49:21 +01:00
Benoit Marty
6e5d7f8f51 Add some previews. 2024-11-29 11:23:02 +01:00
Benoit Marty
6e624cc198 Rename file and split test. 2024-11-29 09:56:16 +01:00
Benoit Marty
c4a4d726a3 Extract fun from LocalMediaView and move some files. 2024-11-29 09:24:52 +01:00
Benoit Marty
96d7fbfadc Move code to the impl module 2024-11-29 09:24:50 +01:00
Benoit Marty
920dc2b0d7 Improve mapping regarding filename, caption and formattedCaption 2024-10-08 17:12:48 +02:00
Jorge Martin Espinosa
eeec7cc785
Centralise the DI code generation logic (#3562)
* Create Anvil extension helper

* Use the helper everywhere
2024-09-30 12:20:28 +00:00
Benoit Marty
f61df38e55 Migrate license to AGPL.
Run script `uv run license-editor --repository ../element-x-android`
2024-09-06 17:19:19 +02:00
Benoit Marty
f484be0e0b Renaming function for code clarity. 2024-02-27 09:53:14 +01:00
Benoit Marty
5d086ad82d Fix moar ktlint issues 2024-01-11 10:02:10 +01:00
renovate[bot]
c8bd362397
Update plugin ktlint to v12.1.0 (#2200)
* Update plugin ktlint to v12.1.0

* Run `./gradlew ktlintFormat` and fix some issues manually.

* Fix other issues reproted by Ktlint

* Limit false positives, KtLint removes unnecessary curly brace in String templates.

* Remove useless Unit

* Minor improvements over ktlint changes

* Restore `AlertDialogContent` behaviour

* Update screenshots

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Benoit Marty <benoit@matrix.org>
Co-authored-by: Jorge Martín <jorgem@element.io>
Co-authored-by: ElementBot <benoitm+elementbot@element.io>
2024-01-10 16:22:24 +01:00
Benoit Marty
95b922c272 Remove unused import. 2023-12-01 09:39:33 +01:00
Benoit Marty
b7a6d8996a Add unit test for AndroidLocalMediaActions 2023-11-30 15:41:40 +01:00