Commit Graph

59 Commits

Author SHA1 Message Date
Zorica Stojchevska 30e5087084 Update copyright
MAILAND-2696
2022-05-23 21:01:57 +00:00
Davide Farella b133e76c41 Add SecurityManager.kt and include Screenshot Preventing
Having a single place where to handle security matters ( FLAG_SECURE )
is the best solution, in order to be independent by BaseActivity and any
 Activity in general and also avoid race conditions where the
 PinLockManager.kt enables the Flag and then the BaseActivity disables
 it

MAILAND-2730
2022-01-31 15:32:33 +01:00
Davide Farella 5e2d5e2433 Remove screenshotPreventer views
MAILAND-2730
2022-01-31 14:19:04 +01:00
Davide Farella 5f0a7b3e4e Clean up after moving Pin Lock
MAILAND-2542
2022-01-24 17:41:32 +01:00
Davide Farella 2abb66a4d5 Basic replacement of the Pin screen from BaseActivity.java to PinLockManager.kt
The Pin screen is now shown when it's supposed to be shown and the back
button is inhibited, still need to migrate measures for screen in Recent
 apps and flashing of the previous activity

MAILAND-2542
2022-01-24 17:41:32 +01:00
Davide Farella fd4fd78ac1 Revert ActivityResultContract API for launch PIN Activity
We changed the method to launch the Activity, without changing the way
we observe the result. Changing that is too expensive and not worth it

MAILAND-2650
2021-11-17 15:26:46 +01:00
Neil Marietta 04eb61e7a2 Converted Settings/ValidatePin/Contact/ReportBugs/Search/Compose startActivity/startActivityForResult to ActivityResultContract. 2021-11-11 09:05:24 +00:00
Neil Marietta e3550fd8a8 Removed SplashActivity.
MailboxActivity is now the main launcher Activity, and support null current userId.
2021-11-11 09:05:24 +00:00
Zorica Stojchevska 842755da2f Changed default snackbar background and text to colors that support dark mode in multiple places 2021-10-25 23:08:48 +02:00
Neil Marietta f87dc77265 Updated Core modules & GOpenPGP (2.2.4). 2021-10-21 15:22:39 +02:00
Tomasz Giszczak af353ed1e3 Migrated core db to mail app db.
MAILAND-1525
2021-10-20 14:20:01 +02:00
Marino Meneghel 7733577b58 Rename onDohFailed callback and call super from MailboxActivity
MAILAND-2218
2021-08-03 11:06:05 +00:00
Zorica Stojchevska 51efd27aa4 When all alternative proxies would fail the only way to retry was by clicking the `Retry` button on the red `Server not reachable banner`. In rare cases the flow would emit the CANT_REACH_SERVER state and try to show the banner while doh is still trying proxies, but we don't want to show the banner until doh is done, to avoid false positives. And in this case the user didn't have a way of resolving the networking, since the `Retry` button on the banner and the banner is not there..
Now we check connectivity on mailbox refresh and as a result of that retry the proxies if needed. But we also force the banner to show if all proxies have failed.
2021-08-03 11:06:05 +00:00
Tomasz Giszczak e71739f631 Fix for conversation details not loading on the first opening.
MAILAND-1968
2021-07-14 16:21:59 +02:00
Davide Farella 9f97bd7891 Revert "Clean up after removing ImportAttachmentsWorker.kt"
This reverts commit 5db8f021a9.
2021-06-29 15:55:28 +02:00
Zorica Stojchevska 808617b08a Pin screen face v4 lift 2021-06-24 15:56:10 +02:00
Tomasz Giszczak d0f6eae093 Reformatted CustomLocale utility class.
MAILAND-1971
2021-06-23 12:12:19 +00:00
Marino Meneghel 9a9909e940 Display attachments for each message in a conversation
By pulling the creation of the "attachments adapter" and the displaying
logic into the adapter (so that it gets executed for each item).
Twp pieces of functionality to "set is pgp encrypted" and hide the
"download attachments" spinner were dropped, as migrating them implied a
relevant effort and the existing plan to change attachment presentation
will invalidate such features anyways.

- Manually changed AttachmentsView to MessageDetailsAttachmentView in
  layout_message_details_web_view while rebasing over
  609fdbb596 changes

MAILAND-1770
2021-06-14 17:34:38 +02:00
Neil Marietta 2730932760 Integrated Human Verification. 2021-06-10 15:21:15 +02:00
Davide Farella 5db8f021a9 Clean up after removing ImportAttachmentsWorker.kt
MAILAND-1669
2021-06-08 09:51:15 +02:00
Neil Marietta 9853a73ac6 Fixed Account Switcher/Drawer dismiss/close behavior.
MAILAND-1867
2021-05-26 18:25:08 +02:00
Davide Farella d7be595990 Add support for View Binding in BaseActivity.java
MAILAND-1399
2021-05-13 10:13:22 +02:00
Neil Marietta 9c50634a72 Fixed AccountStateManager -> AuthOrchestrator -> ActivityResultLauncher Memory Leak. 2021-05-11 16:33:58 +02:00
Zorica Stojchevska 41986f83e7 Implement getConversation method in conversation repository
- Add method in Conversations Repository that will allow us to get the conversation with it's messages from the Remote or Local source.
- Add a way to save the messages into the Message Table
- Add API call to get conversation with it's messages

MAILAND-1766
2021-05-10 13:38:10 +00:00
Neil Marietta 599b6d6d24 Removed BaseActivity dependency from SplashActivity. 2021-05-07 14:12:20 +02:00
Neil Marietta e6e1912330 Added EventHandler for User & Addresses. 2021-05-07 14:12:20 +02:00
Neil Marietta 488c396fe7 Moved AccountViewModel to AccountStateManager with a Process Lifecycle (better fit a multi-activities app). 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
stefanija 331e16c3da Remove v4 flavor and move mailbox view v4 UI to main
We will not use the v4 flavor and instead we will work on v4 on a separate branch.

MAILAND-1495

#comment Affected: Mailbox view UI
2021-04-27 22:34:11 +02:00
stefanija b07b7e5552 Add mailbox view UI to v4 flavor
Added a new v4 design for the mailbox view and made it work with the existing logic.

MAILAND-1495
2021-04-27 18:55:46 +02:00
Davide Farella 47ffb22033 Fix migration from users saved with username to user id 2021-04-08 15:01:15 +02:00
Davide Farella bf687b64dc Extract AppUtil.deleteDatabases in ClearUserData.kt use case
MAILAND-1603

# Conflicts:
#	app/src/main/java/ch/protonmail/android/jobs/messages/PostMessageJob.java

# Conflicts:
#	app/src/main/java/ch/protonmail/android/fcm/FcmIntentService.java
2021-03-18 10:48:24 +01:00
Davide Farella 312683c0b1 Fix Message Database issue after rebase
MAILAND-1189

# Conflicts:
#	app/src/main/java/ch/protonmail/android/data/local/MessageDao.kt
#	app/src/main/java/ch/protonmail/android/di/ApplicationModule.kt
2021-03-18 10:48:14 +01:00
Davide Farella b4f65634a2 Fix login issues after migration to user id
MAILAND-1189

# Conflicts:
#	app/src/main/java/ch/protonmail/android/core/UserManager.kt
2021-03-18 10:47:12 +01:00
Davide Farella 5b231cfbbc Improve MailSettings.showImages with enum ShowImagesFrom
MAILAND-1123
2021-03-18 10:38:09 +01:00
Davide Farella 631ab4e7e5 Clean up BaseActivity.loadMailSettings and related MailSettingsEvent.java
MAILAND-1123

# Conflicts:
#	app/src/main/java/ch/protonmail/android/activities/AccountTypeActivity.java

# Conflicts:
#	app/src/main/java/ch/protonmail/android/contacts/ContactsActivity.kt

# Conflicts:
#	app/src/main/java/ch/protonmail/android/activities/SearchActivity.java
#	app/src/main/java/ch/protonmail/android/activities/settings/BaseSettingsActivity.kt
2021-03-18 10:38:09 +01:00
Davide Farella db6d2c7487 Refactor BaseActivity.java to use User Id instead of username
MAILAND-1123

# Conflicts:
#	domain/src/main/kotlin/ch/protonmail/android/domain/entity/user/User.kt

# Conflicts:
#	app/src/main/java/ch/protonmail/android/activities/BaseActivity.java
2021-03-18 10:38:09 +01:00
Davide Farella 0af7f1ef01 Refactor AccountManagerActivity.kt to use User Id instead of username
MAILAND-1100 #comment Affected: AccountManagerActivity.kt
2021-03-18 10:38:09 +01:00
Marino Meneghel ebad4bfbc9 Delete unused sendMessageBlocking class and mDraftedMessageSnack
together with the broadcast receiver that was showing the
drafted message snackbar, as that was replaced by
SendMessageWorker's error handling

Also removes unused methods in ProtonMailApplication class

MAILAND-914
2021-03-16 10:06:17 +00:00
Marino Meneghel 230f3cae54 Delete MessageSentEvent and its listeners as it's not used anymore
It was replaced by the new `SendMessage` implementation which uses
`userNotifier` to display the outcome of the sending process instead of
the bus.
In one case, the event was causing `AlarmReceiver` to be executed
immediately performing a refresh of the folder the user is in.
As it turned out from the tests done, the interested message is updated
also through a db observer, making that refresh superflous.

MAILAND-914
2021-03-16 10:06:17 +00:00
Marino Meneghel 37722077a1 Remove VerificationOnSendReceiver and related calls as not used anymore
With commit 9ea6e3de79bd7e14 we simplified the flow used to show
"Verification Required" during the sending process, not using
broadcasts anymore. This is not unused.

MAILAND-914
2021-03-16 10:06:17 +00:00
Tomasz Giszczak 50773ed330 Removed GetPaymentMethodsJob, GetPaymentMethodsEvent and related.
MAILAND-1114
2020-11-25 14:04:00 +00:00
Tomasz Giszczak e819a28c7e Moved FetchOnFirstLogin dependency injection from BaseActivity to BaseSettingsActivity and CreateAccountActivity.
MAILAND-1001
2020-11-05 15:14:23 +00:00
Tomasz Giszczak 417a77e8ae Added FetchOnFirstLogin and removed OnFirstLoginJob.
MAILAND-1001
2020-11-05 15:14:23 +00:00
Tomasz Giszczak 93a54f0e2e Removed mPingHasConnection from BaseActivity and added setRefreshing(false) when connection is lost on MailboxActivity.
MAILAND-999
2020-11-04 14:08:12 +01:00
Tomasz Giszczak 72a552e943 Reformatted BaseConnectivityActivity, MessageDetailsActivity and MessageDetailsViewModel.
MAILAND-999
2020-11-04 14:08:11 +01:00
stefanija bf7b201fc1 Convert FetchMailSettingsJob to Worker
Convert FetchMailSettingsJob to CoroutineWorker and add tests for it.

MAILAND-935
2020-10-20 11:41:18 +02:00