Stefanija Boshkovska
952e0a41bf
Merge branch 'fix/2845_stop-showing-trashed-items-in-drafts-and-sent-folders' into 'develop'
...
Stop showing trashed items in Drafts and Sent folders
See merge request android/mail/proton-mail-android!1049
2022-04-12 14:12:06 +00:00
Stefanija Boshkovska
07e2e6924e
Stop showing trashed items in Drafts and Sent folders
...
This is to minimise confusion when it comes to draft/sent messages being
moved to another location and still showing up in the Drafts/Sent
folders.
MAILAND-2845
2022-04-12 13:29:06 +00:00
Zorica Stojchevska
7e53a51f2a
Merge branch 'fix/L10N-557_on-date-prefix' into 'develop'
...
[L10N-557] Create single string for Quote sender header
See merge request android/mail/proton-mail-android!1043
2022-04-12 13:18:41 +00:00
Davide Farella
8ca80f902e
Create single string for Quote sender header
...
We were using 2 strings, which was problematic translation for language
which has a different order of the words
L10N-557
2022-04-12 14:10:37 +02:00
Maciej Surmacz
ab9758f069
Merge branch 'fix/2843_fix-request-link-confirmation-dialog-setting' into 'develop'
...
Fixes the hyperlink confirmation settings
See merge request android/mail/proton-mail-android!1048
2022-04-12 07:41:34 +00:00
Maciej Surmacz
1e4f970d8c
Fixes the hyperlink confirmation settings
...
The setting was saved and read from different preferences. Fixed
by introducing an account settings repo, to have a single place
of accessing those and hide the shared prefs implementation detail.
MAILAND-2843
2022-04-11 14:01:44 +00:00
Zorica Stojchevska
3a66cce7ab
Merge branch 'chore/translations-2022-04-11_062138' into 'develop'
...
[i18n@ae2891d4] ~ Upgrade translations from crowdin
See merge request android/mail/proton-mail-android!1047
2022-04-11 10:34:59 +00:00
proton-ci
a3246573dc
[i18n@ae2891d4] ~ Upgrade translations from crowdin
2022-04-11 06:21:38 +00:00
Zorica Stojchevska
ae2891d4e3
Changed build version
...
#comment Just increased the build name and version code for a new
release
Affected: nothing
2022-04-08 12:47:04 +02:00
Zorica Stojchevska
998ad75b3f
Declare StartOnboardingObserverInitializer in Manifest
2022-04-08 12:47:04 +02:00
Stefanija Boshkovska
86e71b94f3
Merge branch 'fix/2832_improve-saving-draft-ux' into 'develop'
...
Improve the UX around saving drafts
See merge request android/mail/proton-mail-android!1046
2022-04-08 09:19:16 +00:00
Stefanija Boshkovska
f11dfd2056
Replace usage of deprecated startActivityForResult with registerForActivityResult
...
MAILAND-2832
2022-04-08 10:35:22 +02:00
Stefanija Boshkovska
6dfcf4d59c
Save the draft when exiting composer instead of showing a dialog with a question
...
Remove the dialog that asks whether to save the draft or not and save
the draft automatically when there are changes in the composer. After
saving it show a snackbar that the draft has been saved and offer an
option to move the draft to trash from the snackbar.
MAILAND-2832
2022-04-08 10:35:22 +02:00
Stefanija Boshkovska
0b85a15243
Delete draft when closing an empty composer
...
If an empty composer is closed, do not ask if a draft should be saved.
The draft should not be saved if the composer is empty. For now, there
is one limitation to this solution. If the user adds something in the
composer and then removes it, there is no way to check this scenario
reliably and then we'll ask whether the draft should be saved or not.
MAILAND-2832
2022-04-08 10:35:22 +02:00
Davide Giuseppe Farella
2fd6cc9c14
Merge branch 'feat/2830_hyperlink-confirmation-phishing' into 'develop'
...
[2830] Hyperlink confirmation dialog for phishing messages
See merge request android/mail/proton-mail-android!1045
2022-04-08 08:08:09 +00:00
Davide Farella
69c499c6ce
Remove checkbox from hyperlink phishing dialog
...
Also removed DialogUtils.showTwoButtonInfoDialog.dismissOnButtonClick
as it's the default behaviour and cannot be changed
MAILAND-2830
2022-04-07 18:13:35 +02:00
Davide Farella
251781d259
Fix exception getting WebViewClient below API 26 in MessageDetailsAdapter.kt
...
MAILAND-2830
2022-04-07 16:25:58 +02:00
Davide Farella
9f5650bedd
Remove "IN_APP" extra from PmWebViewClientTest.kt
...
MAILAND-2830
2022-04-07 16:25:58 +02:00
Davide Farella
84cdfc7b5d
Implement hyperlink confirmation dialog for phishing messages
...
MAILAND-2829
2022-04-07 16:25:58 +02:00
Davide Farella
bc749c0f2f
Bump MessageDatabase.kt [15] -> [16]
...
Bump Room [2.3.0] -> [2.4.2]
MAILAND-2380
2022-04-07 16:25:58 +02:00
Davide Farella
205aa715ce
Add Message.flags
...
MAILAND-2830
2022-04-07 16:25:58 +02:00
Davide Farella
680daabf0c
Sort Message's COLUMN constants alphabetically
2022-04-07 16:25:58 +02:00
Davide Farella
c816bf394c
Set phishing check in MessageDetailsPmWebViewClient
2022-04-07 16:25:58 +02:00
Davide Farella
84320fd97b
Convert MessageDetailsListItem.kt in a sealed class
...
Sub-classes are now immutable data classes
2022-04-07 16:25:58 +02:00
Davide Farella
44bbbad308
Replace deprecated constructors in MessageDetailsListItem.kt
2022-04-07 15:25:52 +02:00
Davide Farella
606aaf499b
Add MessageDetailsListItem.Header and MessageDetailsListItem.Body
2022-04-07 15:25:52 +02:00
Davide Farella
a716b0c10c
Format PmWebViewClient.kt to match Kotlin style
2022-04-07 15:25:52 +02:00
Davide Farella
bb2a73469f
Rename PMWebViewClient.kt to PMWebViewClient.kt to respect team
...
conventions
2022-04-07 15:25:52 +02:00
Davide Farella
14dd9ecbd7
Convert PMWebViewClient to Kotlin
2022-04-07 15:25:52 +02:00
Davide Giuseppe Farella
8ac602a5e9
Merge branch 'feat/1498_unread-filter/2820_implementation' into 'develop'
...
[1498, 2820] Unread filter implementation
See merge request android/mail/proton-mail-android!1039
2022-04-07 11:00:54 +00:00
Davide Farella
6759762904
Exit selection mode on toggle unread filter
...
MAILAND-2829
2022-04-07 10:05:06 +00:00
Davide Farella
445584a01b
Change interaction colors in UnreadChip
...
changed in:
* selector_unread_messages_status_background.xml
* selector_unread_messages_status_text_color.xml
MAILAND-1498,
MAILAND-2820
2022-04-07 10:05:06 +00:00
Davide Farella
38058139dc
Implement Unread Filter in MailboxActivity.kt
...
MAILAND-1498,
MAILAND-2820
2022-04-07 10:05:06 +00:00
Davide Farella
afaf743d9b
Use MailboxState in MailboxActivity.kt and MailboxViewModel.kt
...
Replaced old flows with MailboxState.isUpdatedFromRemote and
MailboxState.unreadChip
MAILAND-1498,
MAILAND-2820
2022-04-07 10:05:06 +00:00
Davide Farella
0fbfa9cb7e
Add MailboxState.isUpdatedFromRemote
...
MAILAND-1498,
MAILAND-2820
2022-04-07 10:05:06 +00:00
Davide Farella
87fe6b6ac1
Add UnreadChipState.kt into MailboxState.kt
...
MAILAND-1498,
MAILAND-2820
2022-04-07 10:05:06 +00:00
Davide Farella
2c7da7ae2a
Adapt MailboxViewModelTest.kt to MailboxState
2022-04-07 10:05:06 +00:00
Davide Farella
9fedee9040
Rename MailboxItemsState.kt to MailboxListState.kt
...
MAILAND-1498,
MAILAND-2820
2022-04-07 10:05:06 +00:00
Davide Farella
fad52f109e
Create MailboxState.kt that wraps MailboxItemsState
...
MAILAND-1498,
MAILAND-2820
2022-04-07 10:05:06 +00:00
Davide Farella
3e9733f097
Move Mailbox classes into right packages
...
MAILAND-1498,
MAILAND-2820
2022-04-07 10:05:06 +00:00
Davide Farella
f4c4fca1ff
Rename MailboxState.kt -> MailboxItemsState.kt
...
MAILAND-1498,
MAILAND-2820
2022-04-07 10:05:06 +00:00
Maciej Surmacz
30bd51fc9b
Merge branch 'feat/2825_show-v4-onboarding-to-logged-in-users' into 'develop'
...
Adds the v4 onboarding for logged in users
See merge request android/mail/proton-mail-android!1044
2022-04-07 08:23:31 +00:00
Maciej Surmacz
6bef2cfcc1
Preserves the current and previous app versions on prefs cleared
...
This is needed as the prefs are cleared after the user is logged in.
This means the app version and the last app version info will be lost
for that installation- in consequence, the next version won't be
recognised correctly as an app update.
MAILAND-2825
MAILAND-2797
2022-04-07 09:38:20 +02:00
Maciej Surmacz
2d0f7db9df
Removes the version requirement to show the oboarding
...
All the logged in users will be shown this v4 onboarding no matter which
version they have been using before.
MAILAND-2825
2022-04-07 09:38:20 +02:00
Maciej Surmacz
d7e1a34c96
Adds an observer to start the existing user v4 onboarding
...
The observer is registered only if:
- the app version changes,
- the previous version is earlier than the first v4 beta,
- user is logged in,
- the onboarding was not shown yet.
It listens to the first activity (any) creation after the app has been
created and starts the existing user onboarding activity. Once the
activity is shown, the flag in the prefs is updated accordingly
and the observer removes itself.
MAILAND-2825
2022-04-07 09:38:20 +02:00
Maciej Surmacz
c08f9a979d
Splits the new user and existing user v4 onboarding
...
Extracts the base classes and the concrete implementations for
the new user onboarding and the existing user onboarding.
MAILAND-2825
2022-04-07 09:38:18 +02:00
Stefanija Boshkovska
a66c728dad
Merge branch 'fix/2812_slow-actions-in-mailbox' into 'develop'
...
Fix slow actions when a folder has loaded a large number of messages
See merge request android/mail/proton-mail-android!1040
2022-04-05 18:13:02 +00:00
Stefanija Boshkovska
5958493123
Fix slow actions when a folder has loaded a large number of messages
...
The problem was caused by a query to the contacts DB which was checking
the sender/recipient contacts for each message every time the list of
messages is emitted. The mapping of the senders/recipients to the
appropriate contacts is now done in MessageRepository by querying all
the contacts at once, which improved the performance.
MAILAND-2812
2022-04-05 17:14:28 +00:00
Maciej Surmacz
3bcd6dd83a
Merge branch 'fix/2789_cancel-pending-sends-after-a-delay' into 'develop'
...
Introduces a mechanism to clean up the stuck pending sends
See merge request android/mail/proton-mail-android!1019
2022-04-05 16:33:30 +00:00
Maciej Surmacz
55d4de2fd1
Schedules the cleanup after message send is scheduled
...
In addition, the cleanup worker will be cancelled when
the message has been sent successfully.
MAILAND-2789
2022-04-05 15:28:10 +00:00