Commit graph

9222 commits

Author SHA1 Message Date
Adam Brown
9a02543afd
FTUE - Choose a display picture (#5323)
* adding tests around the onboarding view model
- cases for the personalisation and display name actions

* adding base choose name fragment with UI

* add click handling for the display name actions

* adding tests around the onboarding view model
- cases for the personalisation and display name actions

* adding barebones profile picture fragment with ability to select a user avatar

* extracting uri filename resolving to a class which can be injected
- includes tests

* updating upstream avatar on profile picture save and continue step
- moves the personalisation state to a dedicated model to allow for back and forth state restoration

* adding test case for skipping profile picture setting

* taking the profile loading into account when rendering the onboarding loading

* extracting method for the handling of the profile picture selection

* adding dedicated camera icon for choosing profile picture

* adding toolbar to back to profile picture page
- this toolbar will fade in with the fragment as it sits at the fragment level, probably worth revisiting once more pages have a toolbar

* changing edit/add picture icon based on if we're already selected an image

* making use of debounced clicks to avoid potential extra clicks

* making the avatar height and camera icon relative percentage based
- also makes the avatar itself clicking, including a foreground ripple

* fixing formatting

* making use of fake session id for user id assertion

* using a real  matrix id syntax for the fake session user id

* removing duplicated dimens

* using self closing imageview tag
2022-03-07 14:07:22 +00:00
SpiritCroc
22d034566b Do not offset text with inline code snippets
Change-Id: Id1573c55f4e719e4659aacd76a4416a38db5d9eb
2022-03-06 10:36:31 +01:00
SpiritCroc
9d64a14ff7 Revert back to search icon for room list filter for now
Until a global search exists, users are more likely to think "search
for a room" instead of "filter the room list by room name"

Change-Id: Ic0d07bcd0b64c92ad180c33a5740a4a98f94f625
2022-03-06 09:56:31 +01:00
SpiritCroc
c402e6d637 Add comment to schildichat:// intent filter
Change-Id: I155217f592d9af885cda51d1baf410c472c97a4a
2022-03-06 09:47:55 +01:00
Andrew Ryan
c3fbaaa3aa Support schildichat:// links
We want to suppot schildichat:// links in addition to element:// links.

This change adds support for schildichat:// links of the same format as
the element links.
2022-03-05 09:56:13 -08:00
Ahmed Radhouane Belkilani
bcdf004082
Update the top bar in a room (#5213)
Remove typing message notification from room toolbar.

Signed-off-by: Ahmed Radhouane Belkilani <arbelkilani@gmail.com>
2022-03-04 16:38:53 +01:00
SpiritCroc
37a68b4367 [merge] Fix ic_add_reaction color
Change-Id: Ieeff366c672499ed14291fe64338bd0d41332585
2022-03-04 12:11:30 +01:00
SpiritCroc
3d57cb880c Unread line: follow unread counter color
Change-Id: Ia3cd51364517276cfc438fe0f7700d11de7ff00a
2022-03-04 11:57:58 +01:00
SpiritCroc
0a4f07f07f Automatic SchildiChat string correction
Change-Id: I3b93d37a7ac0874203cb10e16693476c01b5fe5b
2022-03-04 11:43:01 +01:00
SpiritCroc
161780899e [merge] Make unread indicator accent color as before
Change-Id: I511adcfd2be159f1ba392525af6e60196a774901
2022-03-04 11:42:49 +01:00
SpiritCroc
2f5df9133f Merge tag 'v1.4.2' into sc
Change-Id: I8a96211645ff31284897d818ce93c7b5571fbd0f

Conflicts:
	library/ui-styles/src/main/res/values/styles_timeline.xml
	library/ui-styles/src/main/res/values/theme_black.xml
	library/ui-styles/src/main/res/values/theme_dark.xml
	library/ui-styles/src/main/res/values/theme_light.xml
	matrix-sdk-android/src/main/java/org/matrix/android/sdk/internal/crypto/store/db/RealmCryptoStoreMigration.kt
	matrix-sdk-android/src/main/java/org/matrix/android/sdk/internal/database/RealmSessionStoreMigration.kt
	vector/src/main/java/im/vector/app/features/home/HomeDrawerFragment.kt
	vector/src/main/java/im/vector/app/features/home/room/detail/RoomDetailViewState.kt
	vector/src/main/java/im/vector/app/features/home/room/detail/timeline/TimelineEventController.kt
	vector/src/main/java/im/vector/app/features/home/room/detail/timeline/factory/MergedHeaderItemFactory.kt
	vector/src/main/java/im/vector/app/features/home/room/detail/timeline/helper/MessageInformationDataFactory.kt
	vector/src/main/java/im/vector/app/features/home/room/detail/timeline/item/AbsBaseMessageItem.kt
	vector/src/main/java/im/vector/app/features/html/PillImageSpan.kt
	vector/src/main/java/im/vector/app/features/navigation/DefaultNavigator.kt
	vector/src/main/java/im/vector/app/features/navigation/Navigator.kt
	vector/src/main/res/layout/item_room.xml
	vector/src/main/res/values/config.xml
2022-03-04 11:42:30 +01:00
SpiritCroc
5331ad8911 Automatic revert to unchanged upstream strings, pt.1
Change-Id: I2cf821d62dab6a1c5bcbf7a3c124e57bd49ab60e
2022-03-04 10:48:35 +01:00
SpiritCroc
dd0037509e Apply corner roundness to image-related drawables
Background outline and time overlay

Change-Id: If6715bf11489609a9ad2aad831db9ee608c803b6
2022-03-04 10:21:40 +01:00
SpiritCroc
b56c1a3b0c Fix image corner radius for SC bubbles
Change-Id: I8cb2515f3f7985cf12ecc2b4a368f663cacfc0d0
2022-03-04 10:06:16 +01:00
Benoit Marty
1690a0b2cf
giving avatar/display name error dialogs human readable error messages (#5419)
- reuses the ErrorDialog logic which translates exceptions to human readable strings
2022-03-03 18:29:39 +01:00
Adam Brown
54e23a2c55 giving avatar/display name error dialogs human readable error messages
- reuses the ErrorDialog logic which translates exceptions to human readable strings
2022-03-03 16:37:59 +00:00
SpiritCroc
fe5eaece47 Setting for more rounded bubbles
Closes https://github.com/SchildiChat/SchildiChat-android/issues/48

Change-Id: I51dabc18c1542dcd4b8d12769fe1cc76573441c5
2022-03-03 17:20:06 +01:00
Yoan Pintas
6e6b04c57e
Merge pull request #4498 from vector-im/yostyle/fix_strandhogg
Override task affinity to prevent unknown activities running in our app tasks.
2022-03-03 15:05:29 +01:00
SpiritCroc
ad3beec3cf [merge] Make url previews utilize maximum width again
Change-Id: Ib0e6bbb2d898553f23c4d51a8c3e0242c6197bb8
2022-03-03 08:52:24 +01:00
SpiritCroc
8afa535fe6 [merge] Fix minimum bubble width for long sender names
Change-Id: I32aa8b8dfc40ce29e2414f04ae8933a836d9ebc3
2022-03-03 08:48:38 +01:00
Adam Brown
10f480b88d adding missing VectorOverrides param from test instance creation and removing unused VectorDatastore 2022-03-02 18:27:12 +00:00
Adam Brown
99e5a8f2fa
FTUE - Choose a display name (#5211)
* adding base choose name fragment with UI

* add click handling for the display name actions

* updating real account display name

* setting the initial disabled state when the view is created

* adding header padding which would have been a toolbar

* exiting the flow on display name updated or skipped, the next PR will introduce the profile picture screen

* updating view model state testing to take all emissions into account

* adding tests around the onboarding view model
- cases for the personalisation and display name actions

* using colorSecondary instead of accent as per quality script rule

* making use of viewevent delegating action for the back handling

* using debounced clicks

* consuming the back action when existing the display name fragment via viewmodel

* making the keyboard imeDone update the display name
2022-03-02 17:59:40 +00:00
SpiritCroc
a8f10a95da Fix attachments close button look
Rotating the attachments button to get a close button does not work
for us

Change-Id: I893a06d0671f75626229e71037f0b6bee774a74c
2022-03-02 16:43:43 +01:00
SpiritCroc
fa53abc91f Proper thread list title name color
Change-Id: I3e39db09a575190a62bd206dcd71b84db07305f6
2022-03-02 16:41:42 +01:00
SpiritCroc
b26b3186ac Hide username color override if unused
Change-Id: I93e40b06c518398ad27458b6425ce0bcae8ebd57
2022-03-02 16:39:56 +01:00
SpiritCroc
fd72d55dd0 Accent color for location map pin
Change-Id: I624f156ad7f44ab84328cee43ff3777e6a51f802
2022-03-02 16:27:21 +01:00
SpiritCroc
bd66326c40 Put emotes back into bubbles
Change-Id: I2c80095104039081e32785d9fd83477e610fda21
2022-03-02 16:22:26 +01:00
SpiritCroc
7ff40cb22d Threading-related theming
Change-Id: Idec928fa03c60235e2723c22139c6247020ef7b0
2022-03-02 16:07:50 +01:00
Adam Brown
0c628905de
Lifting debug overrides to their own abstraction (#5361)
* separating the debug overrides to their own abstraction
- rather than sharing the user facing vector data store

* inlining the debug flow getters and declarations
- also replaces funs with vals as the references are immutable

* adding changelog entry
2022-03-02 10:08:43 +00:00
Tiago Loureiro
ad8809196f Fix overflow on media cache size 2022-03-01 13:12:46 -03:00
NIkita Fedrunov
e65070793d Merge branch 'develop' into sync-analytics-plan 2022-03-01 09:15:19 +01:00
Benoit Marty
781a477056
Merge pull request #5292 from vector-im/feature/mna/4319-dm-space-members-list
#4319: Fix DM navigation in member profile screen
2022-02-28 21:37:09 +01:00
Benoit Marty
71aac37ec7
Merge pull request #5330 from vector-im/feature/fga/more_realm_fixing
Feature/fga/more realm fixing
2022-02-28 21:02:10 +01:00
Maxime Naturel
96f041a773 Remove handling of direct message from timeline fragment 2022-02-28 14:58:58 +01:00
Maxime Naturel
46854b4b84 Moving DM creation/opening into the member profile screen 2022-02-28 14:58:58 +01:00
Maxime Naturel
836bf4e11e DRAFT TODO 2022-02-28 14:58:58 +01:00
Benoit Marty
80bc3af5fa
Merge pull request #5349 from vector-im/feature/mna/5005-save-image
#5005: Add save media icon in gallery
2022-02-28 14:23:17 +01:00
Benoit Marty
27905064e0
Merge pull request #5325 from vector-im/feature/eric/registration-feature-flag
#5307 Adds ForceLoginFallback feature flag to Login and Registration
2022-02-28 14:20:00 +01:00
Maxime Naturel
562780a169 Adding a FakeFile class for unit tests 2022-02-28 11:55:14 +01:00
Maxime Naturel
0170171caa Adding missing spaces after comments 2022-02-28 10:28:45 +01:00
bmarty
ce9c5564c0 Sync analytics plan 2022-02-28 00:03:19 +00:00
Benoit Marty
561dcbcfa1 Remove translation of removed strings, using the IDE facility after a code inspection 2022-02-25 17:25:08 +01:00
Maxime Naturel
56c6301151 Adding unit tests 2022-02-25 16:39:26 +01:00
Maxime Naturel
cb27608c75 Removing base use case interface 2022-02-25 14:11:26 +01:00
Benoit Marty
fd17517675 Remove unused strings 2022-02-25 13:45:24 +01:00
Benoit Marty
85b59654ae Remove unused strings in build.gradle. Rely on BuildConfig fields only 2022-02-25 13:45:24 +01:00
Benoit Marty
b8a0aa724e
Merge pull request #5357 from vector-im/cgizard/ISSUE-5326
[Export e2ee keys] use appName instead of element
2022-02-25 12:03:56 +01:00
Maxime Naturel
6230dfc641 Removing section bloc comments 2022-02-25 12:01:21 +01:00
Maxime Naturel
4e4702cad8 Fixing date of file creation 2022-02-25 10:56:38 +01:00
Claire G
4860ed9131 replace empty space by - for debug app name 2022-02-25 10:04:30 +01:00
Maxime Naturel
aea78b70f1 Changing usage of viewModelScope to Session scope 2022-02-24 18:08:42 +01:00
Maxime Naturel
157feb1e4c Updating order of message actions 2022-02-24 17:39:41 +01:00
Maxime Naturel
a583db43c4 Updating TODOs 2022-02-24 17:39:41 +01:00
Maxime Naturel
4260d2f155 Updating Changelog entry 2022-02-24 17:39:41 +01:00
Maxime Naturel
882b143569 Permission and error handling 2022-02-24 17:39:41 +01:00
Maxime Naturel
4c09fb747b Moving base use case interface into core package 2022-02-24 17:39:41 +01:00
Maxime Naturel
cdb1a96664 Removing TODOs 2022-02-24 17:39:41 +01:00
Maxime Naturel
73ac3f3fda Fixing DI + observing events 2022-02-24 17:39:41 +01:00
Maxime Naturel
7d7b1f305e Calling ViewModel inside Fragment 2022-02-24 17:39:41 +01:00
Maxime Naturel
b17ce12c3d Calling use case inside ViewModel 2022-02-24 17:39:41 +01:00
Maxime Naturel
c6c46375d6 Creating a ViewModel 2022-02-24 17:39:40 +01:00
Maxime Naturel
374ac45505 Interface for UseCase 2022-02-24 17:39:40 +01:00
Maxime Naturel
38236e7815 OnDownload callback 2022-02-24 17:39:40 +01:00
Maxime Naturel
f64268efdb Adding download media use case 2022-02-24 17:39:40 +01:00
Maxime Naturel
e6995cbdd4 Draft 2022-02-24 17:39:40 +01:00
Maxime Naturel
0169396d7d Adding save icon into viewer 2022-02-24 17:39:40 +01:00
Maxime Naturel
042c57f9b8 Renaming some methods to be more concise 2022-02-24 17:39:40 +01:00
Maxime Naturel
6899b5b637 Creating dedicated attachment interaction listener 2022-02-24 17:39:40 +01:00
Maxime Naturel
3384a0caa0 TODO 2022-02-24 17:39:40 +01:00
ericdecanini
65242dfb47 Adds missing invalidation step to forceLoginFallback checkbox 2022-02-24 16:57:04 +01:00
Benoit Marty
40b1862cc3 Remove duplicated string
Template and no template version was present, it was a mistake.
2022-02-24 15:40:04 +01:00
ericdecanini
9f0cef7040 Removes unnecessary exhaustive on when statement 2022-02-24 15:39:27 +01:00
ericdecanini
8d0410d961 Removes Global doNothing function 2022-02-24 15:38:36 +01:00
ericdecanini
3d57d72a7e Reorders some functions within FtueAuthVariant 2022-02-24 15:33:06 +01:00
Benoit Marty
7516a1280e template_ is not required anymore 2022-02-24 15:32:24 +01:00
ericdecanini
92c6d59984 Adds private setting usage to FtueAuthVariant 2022-02-24 15:28:33 +01:00
ericdecanini
981393fefb Changes copy value of forceLoginFallback to it 2022-02-24 15:27:51 +01:00
ericdecanini
092761c118 Adds forceLoginFallback private setting view 2022-02-24 15:07:10 +01:00
ericdecanini
2917d4e4d6 Adds forceLoginFallback private setting 2022-02-24 15:01:18 +01:00
ericdecanini
4ebaa349c3 Reverts adding force login fallback flag to debug features 2022-02-24 14:45:48 +01:00
Weblate
515524584f Merge branch 'origin/develop' into Weblate. 2022-02-24 13:17:48 +00:00
Jeff Huang
8866ad32d7 Translated using Weblate (Chinese (Traditional))
Currently translated at 100.0% (2783 of 2783 strings)

Translation: Element Android/Element Android App
Translate-URL: https://translate.element.io/projects/element-android/element-app/zh_Hant/
2022-02-24 13:16:57 +00:00
Ihor Hordiichuk
ec1195526a Translated using Weblate (Ukrainian)
Currently translated at 100.0% (2783 of 2783 strings)

Translation: Element Android/Element Android App
Translate-URL: https://translate.element.io/projects/element-android/element-app/uk/
2022-02-24 13:16:56 +00:00
Jozef Gaal
9504bd99a7 Translated using Weblate (Slovak)
Currently translated at 98.9% (2754 of 2783 strings)

Translation: Element Android/Element Android App
Translate-URL: https://translate.element.io/projects/element-android/element-app/sk/
2022-02-24 13:16:55 +00:00
lvre
6afc5824c4 Translated using Weblate (Portuguese (Brazil))
Currently translated at 100.0% (2783 of 2783 strings)

Translation: Element Android/Element Android App
Translate-URL: https://translate.element.io/projects/element-android/element-app/pt_BR/
2022-02-24 13:16:51 +00:00
Kagami Sascha Rosylight
0046a3d697 Translated using Weblate (Korean)
Currently translated at 47.6% (1325 of 2783 strings)

Translation: Element Android/Element Android App
Translate-URL: https://translate.element.io/projects/element-android/element-app/ko/
2022-02-24 13:16:50 +00:00
Suguru Hirahara
8a66726dad Translated using Weblate (Japanese)
Currently translated at 94.5% (2632 of 2783 strings)

Translation: Element Android/Element Android App
Translate-URL: https://translate.element.io/projects/element-android/element-app/ja/
2022-02-24 13:16:50 +00:00
random
7ba60a0fb2 Translated using Weblate (Italian)
Currently translated at 100.0% (2783 of 2783 strings)

Translation: Element Android/Element Android App
Translate-URL: https://translate.element.io/projects/element-android/element-app/it/
2022-02-24 13:16:49 +00:00
Linerly
99f1180e01 Translated using Weblate (Indonesian)
Currently translated at 100.0% (2783 of 2783 strings)

Translation: Element Android/Element Android App
Translate-URL: https://translate.element.io/projects/element-android/element-app/id/
2022-02-24 13:16:49 +00:00
Szimszon
01fe4c4d70 Translated using Weblate (Hungarian)
Currently translated at 100.0% (2783 of 2783 strings)

Translation: Element Android/Element Android App
Translate-URL: https://translate.element.io/projects/element-android/element-app/hu/
2022-02-24 13:16:48 +00:00
Priit Jõerüüt
8d9b5eb0d5 Translated using Weblate (Estonian)
Currently translated at 99.9% (2781 of 2783 strings)

Translation: Element Android/Element Android App
Translate-URL: https://translate.element.io/projects/element-android/element-app/et/
2022-02-24 13:16:47 +00:00
Kim Brose
c5286022f0 Translated using Weblate (German)
Currently translated at 99.8% (2780 of 2783 strings)

Translation: Element Android/Element Android App
Translate-URL: https://translate.element.io/projects/element-android/element-app/de/
2022-02-24 13:16:46 +00:00
waclaw66
11342381ef Translated using Weblate (Czech)
Currently translated at 100.0% (2783 of 2783 strings)

Translation: Element Android/Element Android App
Translate-URL: https://translate.element.io/projects/element-android/element-app/cs/
2022-02-24 13:16:46 +00:00
Benoit Marty
5512439d36
Merge pull request #5157 from vector-im/feature/bma/config_poc
Create a new resource in config file for default setting value.
2022-02-24 14:15:19 +01:00
Suguru Hirahara
bf8389a7ec Translated using Weblate (Japanese)
Currently translated at 94.5% (2631 of 2783 strings)

Translation: Element Android/Element Android App
Translate-URL: https://translate.element.io/projects/element-android/element-app/ja/
2022-02-24 11:37:56 +00:00
Joe Sagawa
cc2653e602 Translated using Weblate (Japanese)
Currently translated at 94.5% (2631 of 2783 strings)

Translation: Element Android/Element Android App
Translate-URL: https://translate.element.io/projects/element-android/element-app/ja/
2022-02-24 11:37:53 +00:00
Suguru Hirahara
0dd51340b7 Translated using Weblate (Japanese)
Currently translated at 93.3% (2597 of 2783 strings)

Translation: Element Android/Element Android App
Translate-URL: https://translate.element.io/projects/element-android/element-app/ja/
2022-02-23 22:15:26 +00:00
oksya8and8
d99b7b73ab Translated using Weblate (Japanese)
Currently translated at 93.3% (2597 of 2783 strings)

Translation: Element Android/Element Android App
Translate-URL: https://translate.element.io/projects/element-android/element-app/ja/
2022-02-23 22:15:26 +00:00
Suguru Hirahara
5c263d78dd Translated using Weblate (Japanese)
Currently translated at 93.2% (2596 of 2783 strings)

Translation: Element Android/Element Android App
Translate-URL: https://translate.element.io/projects/element-android/element-app/ja/
2022-02-23 22:15:08 +00:00
oksya8and8
a91f59ba04 Translated using Weblate (Japanese)
Currently translated at 93.2% (2596 of 2783 strings)

Translation: Element Android/Element Android App
Translate-URL: https://translate.element.io/projects/element-android/element-app/ja/
2022-02-23 22:15:07 +00:00