Commit Graph

7662 Commits

Author SHA1 Message Date
Benoit Marty
0a4e093e64 auto-review 2021-12-07 18:04:08 +01:00
Adam Brown
cb79d20327 updating binding method to reflect the type 2021-12-07 16:54:24 +00:00
Adam Brown
05ce1414b9 updating the debug features to use the datastore api
- we're using the blocking api due to only needing to suspend in the debug variant, we may look to change this in the future
2021-12-07 16:52:02 +00:00
Benoit Marty
7cf92ec17d
Merge pull request #4610 from vector-im/feature/adm/url-preview
Updating URL preview design
2021-12-07 17:35:50 +01:00
Benoit Marty
bb959b6b1e Use viewBindingIgnore="true" when we do not need the ViewBinding. 2021-12-07 17:32:52 +01:00
Benoit Marty
d3a1746475 Use id from existing views instead of "hard-coded" values
And improve our extension
2021-12-07 16:56:27 +01:00
Adam Brown
90d00b96b7 avoiding unneeded cast by providing more types 2021-12-07 15:51:35 +00:00
Onuray Sahin
953fadeed4 Merge branch 'develop' into feature/ons/poll_timeline
* develop: (319 commits)
  Bump dagger from 2.40.4 to 2.40.5
  More debouncing
  Changelog
  I need the view here
  clicks() already has debouncing with conflate(), so throttleFirst is not necessary
  Use debouncedClicks where applicable
  Use `observeViewEvents` facility
  private
  use != rather that is
  Fix waring for state is not dialing or connected
  state can also be connected
  Add script to compress video and convert to gif file
  removing boolean notification version usage
  adding changelog entry
  removing unused imports and increasing enum allowance
  porting the notifications setting version to the vector features
  Add warning if unexpected state.
  setting login version via typed build config field instead of resources
  separating the SSO redirection from the login activities - adds a dedicated routing activity to proxy the uri to the login selected by the feature flags
  Removing trailing space
  ...

# Conflicts:
#	vector/src/main/java/im/vector/app/features/home/room/detail/RoomDetailAction.kt
#	vector/src/main/java/im/vector/app/features/home/room/detail/timeline/format/DisplayableEventFormatter.kt
#	vector/src/main/res/layout/item_timeline_event_option_buttons_stub.xml
#	vector/src/main/res/xml/vector_settings_labs.xml
2021-12-07 18:50:52 +03:00
Adam Brown
6c21ed8eab switching to vector base activity and injecting epoxy controller for project consistency 2021-12-07 15:28:50 +00:00
Adam Brown
440de9741b extracting the debug feature state creation to its own factory 2021-12-07 15:19:28 +00:00
Adam Brown
2d74eb060c adding debug screen to override features
- adds enum support with persistence via class names
2021-12-07 15:19:28 +00:00
Adam Brown
96295f6102 removing no longer possible branches 2021-12-07 15:18:46 +00:00
Adam Brown
7e6a5f944f adding a consistent padding to allow message types to avoid touching the side gutter 2021-12-07 15:14:39 +00:00
Adam Brown
23bc867b95 removing manual send status spacing
- it's no longer needed as the send status is always present (but invisible)
2021-12-07 13:47:29 +00:00
Benoit Marty
673cbb29de Merge branch 'develop' into feature/bma/posthog 2021-12-07 14:26:31 +01:00
Benoit Marty
9d4835ab25 Avoid mistake by getting the id using an existing view 2021-12-07 14:23:07 +01:00
Benoit Marty
d63f9073b7 Analytics: Display the opt in screen from the setting, and cleanup the code 2021-12-07 14:22:11 +01:00
Adam Brown
9ed72fd1eb removing manual end alignment for voice messages as send status gutter is now always present 2021-12-07 12:58:46 +00:00
Benoit Marty
219bb89c3a Analytics: Import the latest plan 2021-12-07 13:21:06 +01:00
Benoit Marty
eba5aa94ce Analytics: ViewEvent sent before the View is ready. 2021-12-07 13:07:58 +01:00
Benoit Marty
d0b62738e1 Analytics: opt-in: handle back pressed 2021-12-07 12:51:39 +01:00
Onuray Sahin
566f6332bc Set max length for poll options. 2021-12-07 14:43:27 +03:00
Adam Brown
3ff3507fa1 forcing the send spacing to always be taking into account
- ensures all message lengths are consistent
2021-12-07 11:33:57 +00:00
Adam Brown
5cfebb764c capping the preview image url based on the height
- stops large screens eg tablets from attempting to fill the screen
2021-12-07 11:32:51 +00:00
Adam Brown
9094173b52 matching iOS max line rules for the preview description 2021-12-07 11:32:51 +00:00
Adam Brown
170f34639b using themed colours for the close button 2021-12-07 11:32:51 +00:00
Adam Brown
f3f28f3989 limiting title to avoid overlapping with close icon 2021-12-07 11:32:51 +00:00
Adam Brown
0150d830d4 flattening preview url view layout with custom view to reduce view hierarchy 2021-12-07 11:32:50 +00:00
Adam Brown
952ceced05 updating url preview to match new designs 2021-12-07 11:32:32 +00:00
Benoit Marty
cf267ae234 Analytics: display opt-in from Home 2021-12-07 12:16:23 +01:00
Benoit Marty
c1438f0a65 Analytics: iterate on the config - and disable by default on forks 2021-12-07 12:01:01 +01:00
Onuray Sahin
71d7270da5 Add room list preview for poll response and end events. 2021-12-07 14:00:06 +03:00
Onuray Sahin
0d3444b9ce Fix poll option checkbox color. 2021-12-07 12:53:04 +03:00
Onuray Sahin
1df6b33981 Add labs flag for polls. 2021-12-07 11:53:52 +03:00
Benoit Marty
7a77ae49f1 More debouncing 2021-12-06 22:45:03 +01:00
Benoit Marty
5726c3fd21 I need the view here 2021-12-06 22:32:24 +01:00
Benoit Marty
1f8073cbbf clicks() already has debouncing with conflate(), so throttleFirst is not necessary 2021-12-06 22:15:34 +01:00
Benoit Marty
d13c252658 Use debouncedClicks where applicable 2021-12-06 22:11:56 +01:00
Benoit Marty
8421d46cd7 Use observeViewEvents facility 2021-12-06 21:53:34 +01:00
Benoit Marty
099d0ca564 private 2021-12-06 21:50:33 +01:00
Ihor Hordiichuk
17c28022d7 Translated using Weblate (Ukrainian)
Currently translated at 94.7% (2552 of 2693 strings)

Translation: Element Android/Element Android App
Translate-URL: https://translate.element.io/projects/element-android/element-app/uk/
2021-12-06 17:25:55 +00:00
LinAGKar
beb4dcd3ea Translated using Weblate (Swedish)
Currently translated at 99.8% (2690 of 2693 strings)

Translation: Element Android/Element Android App
Translate-URL: https://translate.element.io/projects/element-android/element-app/sv/
2021-12-06 17:25:55 +00:00
Danial Behzadi
c93fee336d Translated using Weblate (Persian)
Currently translated at 100.0% (2693 of 2693 strings)

Translation: Element Android/Element Android App
Translate-URL: https://translate.element.io/projects/element-android/element-app/fa/
2021-12-06 17:25:54 +00:00
Benoit Marty
74e573ecdc Analytics: small fixes 2021-12-06 18:19:05 +01:00
Benoit Marty
3689a62aae Analytics: add actions in debug screen to manually test the optin screen 2021-12-06 12:57:11 +01:00
Benoit Marty
d804d1b6c5 Analytics: small issue 2021-12-06 12:55:08 +01:00
Adam Brown
c208c2d5ae removing now longer needed Mode argument 2021-12-06 10:14:20 +00:00
Benoit Marty
8c794b1059 Analytics: Opt-in screen logic + remove from SplashScreen 2021-12-06 11:13:49 +01:00
random
c74633c0f8 Translated using Weblate (Italian)
Currently translated at 99.8% (2690 of 2693 strings)

Translation: Element Android/Element Android App
Translate-URL: https://translate.element.io/projects/element-android/element-app/it/
2021-12-04 17:25:55 +00:00
libexus
0a35604dfa Translated using Weblate (German)
Currently translated at 98.4% (2650 of 2693 strings)

Translation: Element Android/Element Android App
Translate-URL: https://translate.element.io/projects/element-android/element-app/de/
2021-12-04 17:25:54 +00:00
Zet
d6d1fe72a2 Translated using Weblate (Arabic)
Currently translated at 39.5% (1065 of 2693 strings)

Translation: Element Android/Element Android App
Translate-URL: https://translate.element.io/projects/element-android/element-app/ar/
2021-12-04 17:25:53 +00:00
ariskotsomitopoulos
c40a686cff Implement LOCAL thread notifications that work only on real time. 2021-12-03 18:15:25 +00:00
Benoit Marty
1f58913b53
Merge pull request #4626 from vector-im/feature/adm/feature-flags
Feature flags base
2021-12-03 17:38:25 +01:00
Benoit Marty
e60d053f84
Merge pull request #4568 from vector-im/feature/fga/fix_sdk_integration_tests
Feature/fga/fix sdk integration tests
2021-12-03 17:11:33 +01:00
Adam Brown
e3155b6c98 removing notifications v1, v2 is live 2021-12-03 16:08:44 +00:00
Adam Brown
db406704c9 removing boolean notification version usage 2021-12-03 15:58:18 +00:00
Adam Brown
6a3d4044ef removing unused imports and increasing enum allowance 2021-12-03 15:30:55 +00:00
Adam Brown
11669fa2ac porting the notifications setting version to the vector features 2021-12-03 15:26:43 +00:00
Adam Brown
8007654e2a setting login version via typed build config field instead of resources 2021-12-03 15:11:31 +00:00
Adam Brown
54c45d3e71 separating the SSO redirection from the login activities
- adds a dedicated routing activity to proxy the uri to the login selected by the feature flags
2021-12-03 14:51:20 +00:00
Onuray Sahin
435dc9f9d1 Fix room list preview. 2021-12-03 15:57:07 +03:00
Adam Brown
9e367a8535 providing a features abstraction for the login
- aims to have a centralised place for all feature login, overrideable by forks and debug flavours
2021-12-03 12:16:43 +00:00
Onuray Sahin
0a7df44a12 Add confirmation dialog to end poll. 2021-12-03 15:11:23 +03:00
Adam Brown
a2a89c1ee8 moving the soft logout activity starting to the navigator 2021-12-03 11:58:13 +00:00
ariskotsomitopoulos
d1bb96cec0 Threads notification badge UI 2021-12-03 11:30:30 +00:00
Jeff Huang
122273d22a Translated using Weblate (Chinese (Traditional))
Currently translated at 100.0% (2693 of 2693 strings)

Translation: Element Android/Element Android App
Translate-URL: https://translate.element.io/projects/element-android/element-app/zh_Hant/
2021-12-03 09:25:59 +00:00
sr093906
bfb0846ddc Translated using Weblate (Chinese (Simplified))
Currently translated at 100.0% (2693 of 2693 strings)

Translation: Element Android/Element Android App
Translate-URL: https://translate.element.io/projects/element-android/element-app/zh_Hans/
2021-12-03 09:25:58 +00:00
Ihor Hordiichuk
a4bdf96ba3 Translated using Weblate (Ukrainian)
Currently translated at 94.6% (2549 of 2693 strings)

Translation: Element Android/Element Android App
Translate-URL: https://translate.element.io/projects/element-android/element-app/uk/
2021-12-03 09:25:58 +00:00
LinAGKar
16846f039a Translated using Weblate (Swedish)
Currently translated at 99.8% (2689 of 2693 strings)

Translation: Element Android/Element Android App
Translate-URL: https://translate.element.io/projects/element-android/element-app/sv/
2021-12-03 09:25:57 +00:00
Besnik Bleta
218e20a92e Translated using Weblate (Albanian)
Currently translated at 99.4% (2677 of 2693 strings)

Translation: Element Android/Element Android App
Translate-URL: https://translate.element.io/projects/element-android/element-app/sq/
2021-12-03 09:25:57 +00:00
lvre
bb1ffc8483 Translated using Weblate (Portuguese (Brazil))
Currently translated at 100.0% (2693 of 2693 strings)

Translation: Element Android/Element Android App
Translate-URL: https://translate.element.io/projects/element-android/element-app/pt_BR/
2021-12-03 09:25:56 +00:00
Linerly
2ec119d70f Translated using Weblate (Indonesian)
Currently translated at 100.0% (2693 of 2693 strings)

Translation: Element Android/Element Android App
Translate-URL: https://translate.element.io/projects/element-android/element-app/id/
2021-12-03 09:25:55 +00:00
Szimszon
ef7e813598 Translated using Weblate (Hungarian)
Currently translated at 100.0% (2693 of 2693 strings)

Translation: Element Android/Element Android App
Translate-URL: https://translate.element.io/projects/element-android/element-app/hu/
2021-12-03 09:25:55 +00:00
Danial Behzadi
33a86a4add Translated using Weblate (Persian)
Currently translated at 99.9% (2692 of 2693 strings)

Translation: Element Android/Element Android App
Translate-URL: https://translate.element.io/projects/element-android/element-app/fa/
2021-12-03 09:25:54 +00:00
Priit Jõerüüt
d287f6b2f3 Translated using Weblate (Estonian)
Currently translated at 99.9% (2691 of 2693 strings)

Translation: Element Android/Element Android App
Translate-URL: https://translate.element.io/projects/element-android/element-app/et/
2021-12-03 09:25:54 +00:00
waclaw66
3b82e16a12 Translated using Weblate (Czech)
Currently translated at 100.0% (2693 of 2693 strings)

Translation: Element Android/Element Android App
Translate-URL: https://translate.element.io/projects/element-android/element-app/cs/
2021-12-03 09:25:53 +00:00
Onuray Sahin
c62028df68 Implement poll actions bottom sheet. 2021-12-03 11:41:21 +03:00
Onuray Sahin
32e8a7e886 Remove legacy poll ui. 2021-12-03 11:40:12 +03:00
Onuray Sahin
06485cf5e4 Implement poll in timeline ui. 2021-12-03 11:39:41 +03:00
Benoit Marty
3644e5d755
Merge pull request #4611 from vector-im/feature/bma/devx_view_ids
Devx view ids
2021-12-02 19:48:35 +01:00
Benoit Marty
73f5d77b05 Analytics: Opt-in screen layout - WIP 2021-12-02 15:56:54 +01:00
Adam Brown
c0c959e460 avoiding duplicate long press events when long pressing urls in messages
- infers a urls has been click by the presence of a selection
2021-12-02 14:38:38 +00:00
Benoit Marty
3917b4c8cf tmp expected result 2021-12-02 14:10:03 +01:00
Benoit Marty
729d9ce815 Create interface for the coming plan 2021-12-02 14:10:03 +01:00
Benoit Marty
f05ed4c6cc Cleanup 2021-12-02 14:10:03 +01:00
Benoit Marty
9b7650e5db Analytics: Remove / suffix in the URLs. 2021-12-02 14:10:03 +01:00
Benoit Marty
eb1a30cc30 Analytics: code quality 2021-12-02 14:10:03 +01:00
Benoit Marty
eeeab1dd0e Give analytics to Activities and Fragments 2021-12-02 14:10:03 +01:00
Benoit Marty
42d987f8ef Analytics: Fix a crash, cannot create several time a PostHog client 2021-12-02 14:10:03 +01:00
Benoit Marty
2968be2233 Analytics: Fix a race condition 2021-12-02 14:10:03 +01:00
Benoit Marty
24a6080090 Analytics: Improve logs 2021-12-02 14:10:03 +01:00
Benoit Marty
55c7270ef2 Analytics: Create PostHog client only when user has given their consent 2021-12-02 14:10:03 +01:00
Benoit Marty
be2637c426 Analytics: enable some logs 2021-12-02 14:10:03 +01:00
Benoit Marty
805fcb6bd3 Analytics: explicitly optOut, maybe useful for stats captured automatically. 2021-12-02 14:10:03 +01:00
Benoit Marty
622483cf9f Analytics: cleanup 2021-12-02 14:10:03 +01:00
Benoit Marty
a8108f2e17 Analytics: simpler API 2021-12-02 14:10:03 +01:00
Benoit Marty
869b5ad55b Analytics: add setting section 2021-12-02 14:10:03 +01:00
Benoit Marty
4c7ccfb438 Analytics: fix a swap in URL and add API keys 2021-12-02 14:10:03 +01:00
Benoit Marty
530f4a8851 Analytics: sign out 2021-12-02 14:10:03 +01:00
Benoit Marty
a3173d89e5 Analytics: manage account data 2021-12-02 14:10:03 +01:00
Benoit Marty
8752fe1e69 Analytics: observe the store and react 2021-12-02 14:10:03 +01:00
Benoit Marty
995e1e3d49 Analytics: add screen API 2021-12-02 14:10:03 +01:00
Benoit Marty
5c5a547aeb Analytics: add capture API 2021-12-02 14:10:03 +01:00
Benoit Marty
b33cddf0e3 Analytics: add PostHog library 2021-12-02 14:10:03 +01:00
Benoit Marty
8608230fa0 Analytics: add config to build.gradle 2021-12-02 14:10:03 +01:00
Benoit Marty
5606a5bfe7 Analytics: ask user consent at startup (we may iterate later) 2021-12-02 14:10:03 +01:00
Benoit Marty
b68e9e1f7f Analytics: setup the first classes 2021-12-02 14:10:03 +01:00
Benoit Marty
6cb8a2458f Remove extra new lines in XML 2021-12-01 23:06:49 +01:00
Benoit Marty
d42473becb More cleanup, remove useless attribute "orientation" 2021-12-01 22:58:21 +01:00
Benoit Marty
696c537f96 All the cleanup and rework end up by fixing some mistakes :) 2021-12-01 22:49:16 +01:00
Benoit Marty
6624039413 Use @id and not @+id when referencing ids in layouts - RelativeLayout and toolbarId 2021-12-01 22:44:07 +01:00
Benoit Marty
c84642aa33 Use @id and not @+id when referencing ids in xml 2021-12-01 22:27:57 +01:00
Benoit Marty
e106ff8de0 Use @id and not @+id when referencing ids in layouts - ConstraintLayout 2021-12-01 22:19:33 +01:00
Benoit Marty
2d17156861 Use @id and not @+id when referencing ids in layouts - accessibilityTraversal 2021-12-01 22:16:28 +01:00
Benoit Marty
6d3df0d802 Use @id and not @+id when referencing ids in layouts - ConstraintLayout 2021-12-01 22:13:21 +01:00
Benoit Marty
fa256cca25
Merge pull request #4603 from vector-im/feature/aris/remove_not_needed_job_cancel_4602
There is no need to call job.cancel() when we are using viewModelScope()
2021-12-01 18:24:06 +01:00
ariskotsomitopoulos
578a012f93 Remove unused onCleared() from viewModels 2021-12-01 16:04:56 +00:00
ariskotsomitopoulos
f8f5e7ecd3 Remove some other not needed setData(null) in controllers 2021-12-01 16:03:04 +00:00
Benoit Marty
f80069604c Version++ 2021-12-01 17:03:00 +01:00
Benoit Marty
9253a3664b
Merge pull request #4607 from vector-im/feature/bma/cursor_crash
Add robustness when getting data from cursors.
2021-12-01 16:48:50 +01:00
Adam Brown
81ee141330 only converting the voice messages when we're sending them
- stops us from eagerly converting to .ogg on android L and below devices whilst the draft phase/playback phase is ongoing, fixes unexpected .ogg when playing drafts
2021-12-01 15:18:24 +00:00
Benoit Marty
84f7eb29e0 Add robustness when getting data from cursors.
Use androidx.core.database extension for better nullability check, and ignore uncomplete data.
2021-12-01 16:09:12 +01:00
ariskotsomitopoulos
9f1e327fa5 There is no need to call job.cancel() when we are using viewModelScope() 2021-12-01 13:15:03 +00:00
ariskotsomitopoulos
7fedcbb998 Fix issue 4600 that search results sometimes are not displayed properly 2021-12-01 13:04:20 +00:00
ariskotsomitopoulos
0241d66f8e Enhance search functionality to support threads 2021-12-01 12:57:53 +00:00
Weblate
9726e258b5 Merge branch 'origin/develop' into Weblate. 2021-12-01 10:38:05 +00:00
Fjoerfoks
c855465e62 Translated using Weblate (Frisian)
Currently translated at 49.7% (1339 of 2690 strings)

Translation: Element Android/Element Android App
Translate-URL: https://translate.element.io/projects/element-android/element-app/fy/
2021-11-30 20:25:58 +00:00
Benoit Marty
3a8fd42513
Merge pull request #4558 from vector-im/feature/adm/voice-draft
Adding support for voice drafts
2021-11-30 20:44:49 +01:00
Benoit Marty
02a609164c
Merge pull request #4592 from vector-im/feature/aris/epoxy_controller_init_improvement
Feature/aris/epoxy controller init improvement
2021-11-30 18:50:32 +01:00
ariskotsomitopoulos
3f29130332 Remove requestModelBuild() from epoxy Controllers init block 2021-11-30 17:06:47 +00:00
Benoit Marty
9d6ac08a18 Move to their own file since those class are used at different places now 2021-11-30 17:46:20 +01:00
ganfra
f0ecfbbab2 Tests: TestMatrix should only be used internally by sdk tests 2021-11-30 17:22:50 +01:00
ariskotsomitopoulos
e7b8b90b0a Highlight the whole message along with the thread summary 2021-11-30 16:05:45 +00:00
Benoit Marty
b66aff457a Iterate on the consent dialog of the identity server - handle the other places. 2021-11-30 16:34:16 +01:00
Benoit Marty
3d5d9ad154 Iterate on the consent dialog of the identity server. 2021-11-30 15:46:27 +01:00
Adam Brown
aaba62813c removing unused import 2021-11-30 10:22:25 +00:00
Adam Brown
cdb5376a19 Adding support for voice drafts
- introduces a new Voice draft and sender mode type
- initializes the voice recorder with a previously recorded file (the draft)
- renames RecordingUiStates to map to their actual UI states
2021-11-30 10:22:25 +00:00
ariskotsomitopoulos
53ca86dc6c Permalink handling for thread events 2021-11-29 18:08:16 +00:00
Benoit Marty
df23cc4e09
Merge pull request #4567 from vector-im/feature/adm/stuck-voip
Always showing hang up button in VOIP calls
2021-11-29 16:24:16 +01:00
Benoit Marty
7beec1c726
Merge pull request #4557 from vector-im/feature/adm/voice-keep-screen-on
Keep device screen on during voice message playback and recording
2021-11-29 14:29:30 +01:00
ariskotsomitopoulos
2a83e93265 Delete root message UI 2021-11-29 15:00:27 +02:00
Benoit Marty
b59ae53805
Merge pull request #4556 from vector-im/feature/adm/voice-rotation
Supporting rotation during voice recordings
2021-11-29 11:40:55 +01:00
Benoit Marty
b889641f2b
Merge pull request #4565 from vector-im/feature/adm/dismissing-listening-for-notification-on-signout
Dismissing Fdroid variant `Listening for notifications` on sign out
2021-11-29 11:33:53 +01:00
Benoit Marty
173ccc6bd4
Merge pull request #4566 from vector-im/feature/adm/typing-emoji-leftovers
Emoji insertion leftover characters
2021-11-29 11:32:22 +01:00
Ihor Hordiichuk
31b521e925 Translated using Weblate (Ukrainian)
Currently translated at 94.7% (2549 of 2690 strings)

Translation: Element Android/Element Android App
Translate-URL: https://translate.element.io/projects/element-android/element-app/uk/
2021-11-29 09:25:54 +00:00
Szimszon
8e807be7b0 Translated using Weblate (Hungarian)
Currently translated at 100.0% (2690 of 2690 strings)

Translation: Element Android/Element Android App
Translate-URL: https://translate.element.io/projects/element-android/element-app/hu/
2021-11-29 09:25:53 +00:00
Zet
e0ba2a26d4 Translated using Weblate (Arabic)
Currently translated at 39.5% (1065 of 2690 strings)

Translation: Element Android/Element Android App
Translate-URL: https://translate.element.io/projects/element-android/element-app/ar/
2021-11-29 09:25:52 +00:00
Adam Brown
bcbfc13f0a allowing idle and create offer call states to hang up
- fixes the CallActivity looking stuck with no way to exit the call
2021-11-26 16:40:59 +00:00
Adam Brown
7b691cc433
updating comment to mention the cursor position 2021-11-26 16:21:57 +00:00
Adam Brown
20241f852a basing the emoji ':' search on the current edit text selection to avoid always replacing the last occurrence 2021-11-26 12:05:54 +00:00