Commit Graph

84 Commits

Author SHA1 Message Date
Zorica Stojchevska 30e5087084 Update copyright
MAILAND-2696
2022-05-23 21:01:57 +00:00
Maciej Surmacz 6578df0894 Introduces a new drawer entry that opens the core subscriptions
MAILAND-2823
2022-04-04 13:29:05 +00:00
Maciej Surmacz b16d89ba37 Re-arranges packages of the pending action code
MAILAND-2789
2022-03-24 10:34:19 +00:00
Zorica Stojchevska c20ef4ee34 Moves notifications to unified DB
Adds separation between layers for push notifications feature

MAILAND-2742
2022-03-15 13:12:15 +00:00
Zorica Stojchevska 9e515a71e1 Move notification related classes to notification package 2022-03-15 13:12:15 +00:00
Davide Farella 5f0a7b3e4e Clean up after moving Pin Lock
MAILAND-2542
2022-01-24 17:41:32 +01:00
Davide Farella 6d550c1ede Remove unneeded safe operators in DisplayNameAndSignatureFragment.kt
Before `user` was nullable, not it is not anymore, no safe operators are
 not needed anymore.

MAILAND-2340
MAILAND-1863
MAILAND-2017
2021-12-17 15:48:59 +01:00
Davide Farella 089453fac1 Get updated User in DisplayNameAndSignatureFragment.kt
The user was cached in BaseSettingsActivity.kt, so
DisplayNameAndSignatureFragment.kt was not able to get updated values,
until the user is updated in BaseSettingsActivity.kt

MAILAND-2340
MAILAND-1863
MAILAND-2017
2021-12-17 15:48:07 +01:00
Davide Farella e0b40e6bd0 Move classes from /labels/presentation/ into correct packages
MAILAND-2657
2021-12-13 14:02:31 +01:00
Davide Farella 3411d97e3d Implement ThemeChooserActivity.kt
Implement layout, ViewModel interactions and connection with BaseSettingsActivity.kt

MAILAND-2635
2021-12-11 09:52:46 +01:00
Maciej Surmacz 43da265dc7 Renames the setIconVisibility function as it only ever makes the icon
visible.
2021-11-17 13:04:27 +01:00
Zorica Stojchevska 9b2a5d3334 General code cleanup around settings classes 2021-11-17 13:04:27 +01:00
Zorica Stojchevska 3ac870db05 Rearrange where labels and folders menu items are shown in the Settings 2021-11-17 13:04:27 +01:00
dkadrikj e32ce5d351 Integrate Core Password management and recovery email management. 2021-11-09 09:30:12 +01:00
Tomasz Giszczak f73a695af8 Fix for labels not being visible in LabelsManager, also moved lables manager to new labels package.
MAILAND-2358
2021-10-20 14:24:03 +02:00
Tomasz Giszczak 8a08618e9a Added refresh labels parameter to LabelRepository observe and fetch all methods, removed old labels fetching logic from MessagesService and related.
MAILAND-1525
2021-10-20 14:21:45 +02:00
Davide Farella bac4d6c11d Cleanup old CounterDao.kt
Many methods were used only for clean up and have been replaced with new Dao in ClearUserData.kt, other methods were used only in CounterDaoTest.kt

MAILAND-2272
2021-09-27 12:05:58 +02:00
Zorica Stojchevska 8beab484be Before Mail Settings were being fetched from a view model, this looked structurally wrong since that view model was being used to widely. So here we move that logic to the GetMailSettings use case. 2021-07-30 18:52:02 +02:00
Zorica Stojchevska 17eccceb53 Remove all local implementation of view mode setting and rely on core.MailSettings 2021-07-30 18:52:02 +02:00
Zorica Stojchevska 1ecb2391eb Extracted logic from AccountSettingsActivity.kt to a view model 2021-07-30 18:52:02 +02:00
Zorica Stojchevska ce777812f8 Swipe actions were showing the default actions instead of actions set up by the user
Now we use the mail settings flow from core, we observe it in the mailbox so it is reflected for the initial fetch of settings and after a change from the settings activity.

MAILAND-2032
2021-07-30 18:52:02 +02:00
marin thiercelin f1e2245ae9 Change the order of account settings.
The order of account settings has been changed, the snooze settings are
now under the mailbox settings.

The setting item's SetValue() has been updated to notify the adapter of the
change, that allows to set it asynchronously.

MAILAND-2086
2021-07-28 07:32:47 +00:00
stefanija c60366134c Revert "Core Mail Settings adoption for view mode and swipe actions"
This reverts commit 54820ceb

Revert "Extracted logic from SwipeChooserActivity to a view model"

This reverts commit d2ed89c5

Revert "Swipe actions were showing the default actions instead of actions set up by the user"

This reverts commit cb252e9c

Revert "Rename and move use case that handles changes to view mode"

This reverts commit 88ef4deb

Revert "When you would change the view mode from conversations to messages or the other way around and go back to the mailbox the setting change was ignored. Now on this action we clear the messages and conversation tables and reload the mailbox. We rely on the mail settings core module to persist the change."

This reverts commit 737c11a2

Revert "Update core libraries to introduce mail settings module"

This reverts commit 0f4cb3b3

Revert "Moved Conversation.kt model inside domain/model directory"

This reverts commit 2c8508c8
2021-07-26 18:24:23 +02:00
Zorica Stojchevska 574a765865 Core Mail Settings adoption for view mode and swipe action
MAILAND-2032
MAILAND-2087

When you would change the view mode from conversations to messages or the other way around and go back to the mailbox the setting change was ignored. Now on this action we clear the messages and conversation tables and reload the mailbox. We rely on the mail settings core module to persist the change.

MAILAND-2087

Rename and move use case that handles changes to view mode

Swipe actions were showing the default actions instead of actions set up by the user

Now we use the mail settings flow from core, we observe it in the mailbox so it is reflected for the initial fetch of settings and after a change from the settings activity.

MAILAND-2032

Extracted logic from SwipeChooserActivity to a view model

Extracted logic from AccountSettingsActivity.kt to a view model
2021-07-26 18:24:23 +02:00
Tomasz Giszczak ef1c544787 Fixed big part of detekt formatting errors. Counter lowered to 2052. Removed unused files.
MAILAND-1792
2021-07-07 14:15:11 +00:00
Zorica Stojchevska 99b0915051 Fixes issue with click not working for some of the items in the recycler view, the issue was being cause by calling notifyDataSetChanged in a coroutine 2021-06-24 15:56:25 +02:00
Zorica Stojchevska 27f0938ad4 Added animations to fragments to resemble more to the Activities opening and closing, since we have a mix of fragments and activities 2021-06-24 15:56:25 +02:00
Zorica Stojchevska c4bc5552c6 Add save button to DisplayNameAndSignatureFragment and discard dialog
Change mobile signature to mobile footer everywhere and add text view with info explaining the feature
Fix display name input field to be single line
Fix title of DisplayNameAndSignatureFragment
2021-06-24 15:56:25 +02:00
Zorica Stojchevska 38b2f8b255 Change menu entry from Swiping gesture to Swipe actions
Fix toolbar title for SwipeSettingFragment
Fix signature not being saved from remote issue
2021-06-24 15:56:25 +02:00
Zorica Stojchevska cf2eab3b8a Clean up usage of deprecated and unused methods 2021-06-24 15:56:25 +02:00
Zorica Stojchevska 3946266f91 Move to using data binding in DisplayNameAndSignatureFragment
Change "mobile signature" feature to be called "mobile footer" and bring back the premium feature lock to it
2021-06-24 15:56:25 +02:00
Zorica Stojchevska b98a3968cd Set up view binding in Swipe Fragment
Move swipe setting out of Account Settings
Observe shared preferences and update UI when swipe actions is changed
2021-06-24 15:56:25 +02:00
Zorica Stojchevska 792a175b18 Extracted adding a decoration to recycler view to a method in BaseSettingsActivity
Moved constants out of companion object and changed one constant
Small refactor to PinFragment
2021-06-24 15:56:24 +02:00
Zorica Stojchevska 0fd6c00988 Display name and signature screen v4 face lift 2021-06-24 15:56:24 +02:00
Zorica Stojchevska eb6bd57be4 Swipe preview screen and swipe chooser screen v4 face lift 2021-06-24 15:56:24 +02:00
Zorica Stojchevska 628caea101 Subscription screen v4 facelift 2021-06-24 15:56:10 +02:00
Zorica Stojchevska 92c1d431f2 Local storage screen v4 facelift 2021-06-24 15:56:10 +02:00
Zorica Stojchevska c0cb8de35b Snooze notifications screen v4 facelift 2021-06-24 15:56:10 +02:00
Zorica Stojchevska 0dba440a81 Push notification screen V4 face lift
MAILAND-1735
2021-06-24 15:56:10 +02:00
Zorica Stojchevska 8f0236c112 initial settings screen redesigned to v4
MAILAND-1735
2021-06-24 15:56:10 +02:00
Marino Meneghel 0078229871 Remove "isTransient" flag from everywhere
Such flag was used to differentiate between messages that were coming
from "Search" (being the transient ones) and those that weren't.

This conditional being performed in many places was adding a lot of
noise and not really bringing any value, as the same behaviour can be
achieved by not storing messages from search in the first place.
2021-05-17 18:41:05 +02:00
Zorica Stojchevska 1f93a66016 Add dialog redirecting users to web for missing features 2021-05-13 12:59:22 +00:00
Marino Meneghel 19e523104e Move MailboxViewModel and MailboxActivity to mailbox package
MAILAND-1644
2021-05-10 13:38:10 +00:00
Zorica Stojchevska 4da028bdf2 Implemented a way of clearing conversations from db 2021-05-10 13:38:10 +00:00
Neil Marietta 359bcdc1ca Fixed Local Max Storage showing wrong value. 2021-05-07 14:12:20 +02:00
Neil Marietta 3528d236c1 Refactored UserManager Current/User getters. 2021-05-07 14:12:20 +02:00
Neil Marietta 041bb91ed6 Added Multi Account support. 2021-05-07 14:12:19 +02:00
Neil Marietta aa1b640af1 Replaced AccountManager by Core AccountManager. 2021-05-07 14:12:19 +02:00
Neil Marietta 6a1e305d74 Removed Login related (soon replaced by Core Modules).
Removed Create/Login Account (2FA, 2Pass, UserKey/AddressKey setup).
Removed Donate/Payment/Billing/Upselling.
Removed Plan/Subscription update/upgrade.
Removed Update Password.
Removed Update Recovery Email.
Removed Keys update (except activate).
2021-05-07 14:10:52 +02:00
Davide Farella c29b1a08a7 Fix crashes related to unavailable user id
MAILAND-1691

# Conflicts:
#	app/src/main/java/ch/protonmail/android/repository/MessageRepository.kt
2021-04-08 15:01:13 +02:00