Benoit Marty
b9c7dd7d12
Provide MutableStateFlow in the constructor of the fake class.
2024-11-06 17:29:20 +01:00
Benoit Marty
04274b8384
Rename CurrentCallObserver to CurrentCallService
2024-11-06 17:24:26 +01:00
Benoit Marty
d041de3217
Update tests
2024-11-06 10:11:50 +01:00
Benoit Marty
0bbb1ac23d
Ensure the user can join the call even if they has joined a call in another session.
2024-11-06 09:50:03 +01:00
Benoit Marty
5eeb46702f
Compile and target API 35.
...
Tested OK on a API 35 emulator.
2024-10-31 09:27:52 +01:00
Benoit Marty
9e5ce39c4d
Add test on isCallActive
2024-10-16 09:54:39 +02:00
Benoit Marty
36c3b1cff5
Neat: do not compute audioAttributes if not necessary.
2024-10-16 09:31:07 +02:00
Benoit Marty
a9091c6ea6
Set Active call immediately when not in widget mode.
2024-10-16 09:28:06 +02:00
Benoit Marty
35d94bbda7
ElementCall: CallForegroundService now use the Microphone permissions.
2024-10-15 14:54:06 +02:00
Benoit Marty
591ec2e8d8
ElementCall: request audio focus and start CallForeground service only when the call is effectively started.
2024-10-15 14:50:26 +02:00
bmarty
29a489df0b
Sync Strings from Localazy
2024-10-14 00:27:28 +00:00
Jorge Martin Espinosa
7035222f35
Add the CallWebView logs to our logging stack ( #3637 )
...
* Add the `CallWebView` logs to our logging stack
---
Co-Authored by @bmarty
2024-10-10 14:12:47 +00:00
Jorge Martin Espinosa
e44b5ad98d
Upgrade Kotlin to v2.0 ( #3594 )
...
* Bump Kotlin to v2.0
* Fix lots of issues due to the upgrade: lint issues, function signature incompatibilities, broken tests, etc.
---------
Co-authored-by: Benoit Marty <benoit@matrix.org >
2024-10-10 08:32:00 +00:00
bmarty
05291bcf2f
Sync Strings from Localazy
2024-10-07 00:28:33 +00:00
Jorge Martin Espinosa
2efdb3ae45
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
87f642918e
Merge pull request #3527 from element-hq/feature/bma/elementCallNoNetwork
...
Handle no network error when starting Element Call.
2024-09-26 14:43:50 +02:00
Benoit Marty
750f07547c
Fix PiP crash with IllegalStateException. Activity must be resumed to enter PiP mode.
...
https://sentry.tools.element.io/organizations/element/issues/1449388/events/2eb06349f6224481960a64916d51ae60/?project=59
2024-09-24 15:46:19 +02:00
Benoit Marty
2ec6250e6f
Fix tests
2024-09-24 10:11:31 +02:00
Benoit Marty
0cea89edcc
Handle no network error when starting Element Call.
2024-09-24 09:32:20 +02:00
Jorge Martin Espinosa
03786c1fd2
Add forced logout flow when the proxy is no longer available ( #3458 )
...
* Add `MatrixClient.isSlidingSyncProxySupported` function
* Update localazy strings
* Modify `ErrorDialog` to have an `onSubmit` call, which will be used for the submit action.
Also make the title text optional and dismissing the dialog by tapping outside/going back configurable.
* Check if a forced migration to SSS is needed because the proxy is no longer available.
In that case, display the non-dismissable dialog and force the user to log out after enabling SSS.
* Enable native/simplified sliding sync by default.
* Refactor the login to make sure we:
1. Always try native/simplified sliding sync login first, if available.
2. Then, if it wasn't available or failed with an sliding sync not supported error, try with the proxy instead (either discovered proxy or forced custom one).
* Move logic to `LoggedInPresenter` and the UI to `LoggedInView`
* Update screenshots
---------
Co-authored-by: ElementBot <benoitm+elementbot@element.io >
2024-09-16 09:13:02 +00:00
Benoit Marty
8ff40ac6fb
Merge pull request #3422 from element-hq/feature/bma/agpl
...
Change license to AGPL
2024-09-06 20:40:28 +02:00
Benoit Marty
62a6e916a6
Migrate license to AGPL - XML files.
2024-09-06 17:43:35 +02:00
Benoit Marty
2b016227e9
Migrate license to AGPL.
...
Run script `uv run license-editor --repository ../element-x-android`
2024-09-06 17:19:19 +02:00
Benoit Marty
97aa82e5fb
Ensure Call is not hang up when user is asked to grant system permissions.
2024-09-06 16:17:21 +02:00
Jorge Martin Espinosa
d463b6ba4a
Fix Element Call closing automatically on API 34 ( #3402 )
...
* Fix Element Call closing automatically on API 34
It seems like registering a user leave hint listener way too early was causing the activity to try to enter PiP erroneously and that led to the activity closing instead.
2024-09-05 14:28:05 +00:00
bmarty
39ef8b38bb
Sync Strings from Localazy
2024-09-02 00:15:17 +00:00
Benoit Marty
edd0700bf8
Remove feature flag PictureInPicture
2024-08-27 18:41:40 +02:00
Benoit Marty
0d576a9f03
Rename PipActivity to PipView
2024-08-26 17:15:32 +02:00
Benoit Marty
f6e864f520
Avoid keeping a reference to the eventSink in a separate value
2024-08-26 17:11:41 +02:00
Benoit Marty
d626362be1
Rename WebPipApi to PipController
2024-08-26 16:50:55 +02:00
Benoit Marty
cf650c5af2
Fix UI tests.
2024-08-23 16:40:48 +02:00
Benoit Marty
ca6fe31ff8
Simplify code.
2024-08-23 16:34:44 +02:00
Benoit Marty
c993daab44
Allow entering Pip mode when controls.canEnterPip() cannot be evaluated.
2024-08-23 16:28:13 +02:00
Benoit Marty
508e9106e2
Communicate with Element Call about PiP status.
...
Also only use eventSink to communicate with the Presenter, instead of having public methods.
Change WeakReference to an Activity to a listener and update tests.
2024-08-23 16:19:21 +02:00
bmarty
5765d9bf9f
Sync Strings from Localazy
2024-08-19 00:25:36 +00:00
ElementBot
01617e1c9d
Sync Strings ( #3297 )
...
Co-authored-by: bmarty <3940906+bmarty@users.noreply.github.com >
2024-08-12 06:03:23 +00:00
ganfra
fe807b9133
Sync on push : fix CallScreenPresenterTests after last changes.
2024-08-01 11:21:05 +02:00
bmarty
d288ace4bd
Sync Strings from Localazy
2024-07-29 00:26:27 +00:00
ElementBot
9522569860
Sync Strings ( #3232 )
...
Co-authored-by: bmarty <3940906+bmarty@users.noreply.github.com >
2024-07-22 08:59:47 +00:00
Benoit Marty
94f38f1af5
Rework FakeMatrixRoom so that it contains only lambdas. ( #3229 )
...
* Upgrade lint to 8.7.0-alpha01
* FakeMatrixRoom: lambda everywhere
Fix test compilation issues
2024-07-22 10:39:48 +02:00
Jorge Martin Espinosa
bc87ff01cf
Cancel ringing call notification on call cancellation ( #3047 )
...
* Cancel ringing call notification on call cancellation
* Improve implementation, add some comments to clarify how it works.
* Make sure the call timeout job is cancelled
2024-07-19 17:51:44 +02:00
Benoit Marty
f3b3b97877
Add preview for Call screen in different PipState.
2024-07-15 17:23:03 +02:00
Benoit Marty
a7c6b7e751
When PiP is supported, use Back for top left icon instead of Close. #3197
2024-07-15 17:23:03 +02:00
Benoit Marty
77a42f2198
Call in PiP: when closing PiP, hang up the call.
...
The Activity is actually not destroyed as I expected.
2024-07-15 17:22:34 +02:00
Benoit Marty
b95004fe23
Call in PiP: add feature flag, disabled in release builds.
2024-07-15 16:48:39 +02:00
Benoit Marty
29b115dfdf
Introduce ElementThemeApp to avoid code duplication.
2024-07-09 11:10:10 +02:00
Benoit Marty
15873e9af2
Merge branch 'develop' into feature/bma/realDarkTheme
2024-07-09 10:19:26 +02:00
Benoit Marty
b21065fe64
Fix KtLint issue
2024-07-08 18:48:51 +02:00
Benoit Marty
95d6404290
CallScreenPresenter is reading the current theme, it needs to be in the ElementTheme block. Closes #3153
2024-07-08 18:35:03 +02:00
Benoit Marty
7c37cdee5f
Ensure PinUnlockActivity and IncomingCallActivity use the internal theme set by the user.
2024-07-08 18:17:44 +02:00