Commit Graph

157 Commits

Author SHA1 Message Date
Benoit Marty
6958cc480b Ensure the snackbar "No more media to show" is not render after the app is loading the first item. Closes #4345 2025-03-12 12:09:51 +01:00
Benoit Marty
05e328b916 Sync strings (fix typo) 2025-03-10 09:30:13 +01:00
bmarty
9456ee921d Sync Strings from Localazy 2025-03-10 00:28:38 +00:00
Benoit Marty
3a09d1c4ca Migrate to coil3 2025-03-03 12:30:26 +01:00
Benoit Marty
d44f5e563f Replace Material icons with Compound icons wherever it's possible 2025-02-26 22:19:19 +01:00
ElementBot
9733e79b60 Sync Strings from Localazy (#4298)
Co-authored-by: bmarty <3940906+bmarty@users.noreply.github.com>
2025-02-24 09:14:29 +01:00
Benoit Marty
e35eda0c67 Improve MatrixRoom.createTimeline API. 2025-02-18 12:12:36 +01:00
Benoit Marty
c02436d3f0 Update Matrix Room API and allow media swipe on pinned event only. 2025-02-17 16:45:25 +01:00
Benoit Marty
37618600d7 Merge pull request #4253 from element-hq/sync-localazy
Sync Strings - New translations to turkish
2025-02-17 12:24:53 +01:00
renovate[bot]
1753a02cd2 fix(deps): update telephoto to v0.15.1 (#4270)
* fix(deps): update telephoto to v0.15.1

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Jorge Martín <jorgem@element.io>
2025-02-17 11:01:40 +01:00
bmarty
3dddd90d97 Sync Strings from Localazy 2025-02-17 00:30:17 +00:00
Benoit Marty
0d6d74512f Use ElementTheme instead of MaterialTheme 2025-02-06 15:10:15 +01:00
bmarty
5a4cac7d2d Sync Strings from Localazy 2025-02-03 00:29:01 +00:00
Benoit Marty
243ce23055 Protect access to member timeline with a Mutex and clean the code. 2025-01-29 10:35:52 +01:00
Benoit Marty
a668e7e7b1 Move factory method to a dedicated files as they are used by tests also. 2025-01-29 10:24:58 +01:00
Benoit Marty
5a96406f1a Move galleryMode computation to MediaViewerDataSource 2025-01-29 10:16:22 +01:00
Benoit Marty
82f7a256f3 Move some classes in new packages
- io.element.android.libraries.mediaviewer.impl.datasource
- package io.element.android.libraries.mediaviewer.impl.model
2025-01-29 10:09:17 +01:00
Benoit Marty
9b1d0aadbe Add tests on GroupedMediaItems.hasEvent 2025-01-28 12:47:05 +01:00
Benoit Marty
01345312ad Add tests on DefaultFocusedTimelineMediaGalleryDataSourceFactory 2025-01-28 12:42:30 +01:00
Benoit Marty
0365497b98 Add tests on LiveMediaTimeline 2025-01-28 12:33:19 +01:00
Benoit Marty
c57b2777dc Add tests on FocusedMediaTimeline 2025-01-28 12:23:59 +01:00
Benoit Marty
e9a9e79b40 Cleanup 2025-01-28 11:33:20 +01:00
Benoit Marty
fdf40120a7 Add ability to swipe between media when opened from the timeline. 2025-01-28 09:58:44 +01:00
Benoit Marty
1949ec274c Remove log. 2025-01-27 18:40:53 +01:00
Benoit Marty
0a534fd05b Extract snackbar displayer to its own methods. 2025-01-27 15:08:51 +01:00
Benoit Marty
5a517ca849 Suppress large test class. 2025-01-27 14:29:31 +01:00
Benoit Marty
3f27aed004 Media Viewer: Add test on snackbar when reaching end of timeline 2025-01-27 12:11:01 +01:00
Benoit Marty
08083a8765 Media Viewer: show snackbar when reaching end of timeline. 2025-01-27 11:24:02 +01:00
Benoit Marty
fa617dbda8 Merge pull request #4195 from element-hq/feature/bma/snackBar
Fix snack bar not displayed in MediaViewer
2025-01-27 09:52:36 +01:00
bmarty
d419f2fdff Sync Strings from Localazy 2025-01-27 00:25:38 +00:00
Benoit Marty
781c7f34f4 MediaGallery: close the bottom sheet when action "Save" or "Share" are selected. 2025-01-24 17:34:04 +01:00
Benoit Marty
2676dafd1d Snackbar: Use a private SnackbarDispatcher() to ensure the Snackbar is displayed in the current screen (#4128) 2025-01-24 17:30:03 +01:00
Benoit Marty
c20a9d011c Improve code clarity 2025-01-23 15:43:33 +01:00
Benoit Marty
dbf511ee2a Cleanup 2025-01-23 15:42:00 +01:00
Benoit Marty
8d049e134f Fix color for media viewer according to Figma. 2025-01-23 15:37:09 +01:00
Benoit Marty
ed80ca9899 Use Black for code clarity. 2025-01-23 15:08:40 +01:00
Benoit Marty
c3ec11dec5 Add name to argument for clarity. 2025-01-23 15:06:10 +01:00
Benoit Marty
0b5ad29391 Add documentation on buildMediaViewerPageList. 2025-01-23 15:03:40 +01:00
Benoit Marty
d1d323424d Simplify 2025-01-23 14:57:59 +01:00
Benoit Marty
fae1c0800d Simplify with code coerceAtLeast(0)` 2025-01-23 14:57:05 +01:00
Benoit Marty
b967c877a6 Remove useless parameter 2025-01-23 14:49:18 +01:00
Benoit Marty
3dcf921c1a Fix formatting. 2025-01-23 09:56:51 +01:00
Benoit Marty
4c6f46e46c Ensure gallery is paginating to get new items. 2025-01-23 09:29:37 +01:00
Benoit Marty
c817112bf2 Fix tests. 2025-01-22 16:24:35 +01:00
Benoit Marty
40a44cae75 Add timestamp to trigger back pagination. 2025-01-22 16:24:34 +01:00
Benoit Marty
5e506be062 Restore overlay when user cancel the dragging 2025-01-22 16:24:34 +01:00
Benoit Marty
f55da9027b Introduce MediaViewerFlickToDismiss and extract to its own file 2025-01-22 16:24:32 +01:00
Benoit Marty
2267a4b787 MediaViewer: add error case in the UI. 2025-01-22 16:24:32 +01:00
Benoit Marty
b0bfea9cc4 Add test on MediaViewerDataSource 2025-01-22 16:24:31 +01:00
Benoit Marty
36924070df Add test on SingleMediaGalleryDataSource 2025-01-22 16:24:30 +01:00