Commit graph

7798 commits

Author SHA1 Message Date
cketti
740d67a0f3
Merge pull request #3297 from k9mail/account-e2e-improved
Account e2e improved
2018-04-06 00:09:53 +02:00
Michał Nowak
d7873eb28d Add \Draft flag to draft messages (#3291)
Use \Draft flag for drafts
2018-04-05 12:01:54 +02:00
cketti
beff01a872 Update to Kotlin 1.2.31 2018-04-05 01:37:41 +02:00
Vincent Breitmoser
ff5af37647 Merge branch 'hendrikbl-settings-icons' 2018-04-04 15:14:55 +02:00
Hendrik
d0b3401c52 Added icons to preference list items 2018-04-04 15:14:43 +02:00
Vincent Breitmoser
ead701ec91 Use Timber instead of Log 2018-04-04 14:06:51 +02:00
Vincent Breitmoser
ff8a6f0100 Don't care if we get UI_REQUIRED state
GET_SIGN_KEY_ID is a valid call without registration in newer
OpenKeychain. For older versions, it doesn't matter since we
get the registration dialog in a pending intent that will be
called as usual.
2018-04-04 14:06:51 +02:00
Vincent Breitmoser
f0c438e2d4 Cache activity result if provider isn't ready yet 2018-04-04 14:06:51 +02:00
Vincent Breitmoser
ec4e704c32 clear openpgp key when provider is disabled 2018-04-04 14:06:51 +02:00
Vincent Breitmoser
f67daa030d Call setupCryptoSettings during onCreate, too
This is slightly wasteful since it's also called in onResume, but we
need to make sure it's been called before onActivityResult. Moving to
onStart won't work, because we do want to refresh onResume if returning
from a dialog.
2018-04-04 14:06:51 +02:00
Vincent Breitmoser
6bf860af7d Support key selection info mechanism 2018-04-04 14:06:51 +02:00
Vincent Breitmoser
764a98db32 don't save state individually for OpenPgpKeyPreference 2018-04-04 14:06:51 +02:00
Vincent Breitmoser
8472d64731 Fix read of incorrect value while parceling 2018-04-04 14:06:51 +02:00
Vincent Breitmoser
ccf98177e5 use OpenPgpApiManager to handle service connection in OpenPgpKeyPreference 2018-04-04 14:06:51 +02:00
Vincent Breitmoser
35a8b6cd49 make K9PreferenceActivity implement LifecycleOwner 2018-04-04 14:06:51 +02:00
Vincent Breitmoser
db7db4dc47
Merge pull request #3301 from k9mail/fix-empty-moveOrCopy
Fix empty move or copy
2018-04-04 04:00:27 +02:00
Vincent Breitmoser
f3f65846d5 add unit test for empty pendingMoveOrCopy 2018-04-04 03:53:17 +02:00
Vincent Breitmoser
108391f977 Fix IllegalArgumentException on empty pendingMoveOrCopy
Fixes #3300
2018-04-04 03:32:52 +02:00
Vincent Breitmoser
b5f2935a08 Further simplify logic, and fix menu behavior 2018-04-03 21:56:42 +02:00
Vincent Breitmoser
495798b05a Simplify CryptoStatusDisplayType 2018-04-03 21:56:42 +02:00
Vincent Breitmoser
00cd3571f0 Use correct logic for encryption button when replying to encrypted mail 2018-04-03 17:49:01 +02:00
cketti
23d7697fa6
Merge pull request #3290 from k9mail/openpgp-api-manager
Introduce lifecycle-based OpenpgpApiManager for service connection
2018-04-03 05:35:34 +02:00
Vincent Breitmoser
e4aa00d8a7 Make OpenPgpApiManager more testable, and fix related unit tests 2018-04-02 17:42:03 +02:00
Vincent Breitmoser
0c2f9bfb31 Slight improvements to OpenPgp api connection state handling 2018-04-02 17:36:39 +02:00
Vincent Breitmoser
fedf35815f Redo handling of user interaction pending intent 2018-04-01 13:49:28 +02:00
Vincent Breitmoser
ee16a83ec8 move OpenPgpApiManager into openpgp-api lib 2018-04-01 13:49:28 +02:00
Vincent Breitmoser
6d78f6fe31 extract OpenPgpApi into OpenPgpApiManager 2018-04-01 13:49:28 +02:00
cketti
a14d0b0bc5
Merge pull request #3276 from k9mail/account-e2e-setting
Revamp e2e settings
2018-04-01 02:44:56 +02:00
Vincent Breitmoser
7f5d852b6d add note about missing openPgpProvider setting 2018-03-30 12:35:59 +02:00
Vincent Breitmoser
188de17276 Dismiss activity when clicking outside of dialog 2018-03-30 12:35:14 +02:00
Vincent Breitmoser
56ffd807de Make e2e key setting actually work 2018-03-30 12:35:14 +02:00
Vincent Breitmoser
ac5946df30 Use null for empty pgp provider, use account's check method 2018-03-30 12:35:14 +02:00
Vincent Breitmoser
860f90d499 incorporate feedback 2018-03-30 12:35:14 +02:00
Vincent Breitmoser
6cb5026a9f Rename method from temp name 2018-03-30 12:35:14 +02:00
Vincent Breitmoser
732993b4ad Small ui improvements to OpenPGP app select 2018-03-30 12:35:14 +02:00
Vincent Breitmoser
382d46a7cb Handle missing OpenPGP app more gracefully 2018-03-30 12:35:14 +02:00
Vincent Breitmoser
4913b10415 Change shortcut from message view to e2e settings 2018-03-30 12:35:14 +02:00
Vincent Breitmoser
4bcecdcf3c Move provider setting from global to account 2018-03-30 12:35:14 +02:00
Vincent Breitmoser
69e54f7075 Improve OpenPGP app selection dialog 2018-03-30 12:34:49 +02:00
Vincent Breitmoser
909e9fbdd8 Redesign end-to-end account settings 2018-03-30 12:34:49 +02:00
Vincent Breitmoser
032c3e4378 Rip out crypto provider setting 2018-03-30 12:34:49 +02:00
cketti
3f07313bf3
Merge pull request #3283 from k9mail/add_koin_for_dependency_injection
Add KOIN for dependency injection
2018-03-30 04:58:16 +02:00
cketti
9dfe1b2843 Fix Robolectric tests 2018-03-30 04:49:11 +02:00
cketti
15cf1dff82 Add KOIN for dependency injection 2018-03-30 04:49:11 +02:00
cketti
310600d025
Merge pull request #3253 from k9mail/do_not_create_special_folders
Don't create special folders on server
2018-03-30 04:08:26 +02:00
Vincent Breitmoser
05dda55025 Delete unused remnant class 2018-03-26 23:01:04 +02:00
Vincent Breitmoser
5ebc9e400c
Merge pull request #3277 from k9mail/derobolectrify_tests
Remove Robolectric from tests where we don't need it
2018-03-24 13:14:32 +01:00
cketti
840e03da53 Remove Robolectric from tests where we don't need it 2018-03-24 07:32:14 +01:00
cketti
ba6fdfb71a Update Espresso to be able to run Robolectric tests in Android Studio
See https://github.com/robolectric/robolectric/issues/3613
2018-03-24 06:35:06 +01:00
cketti
9cd9eb9095 Move chip color selection code from Account to AccountCreator
This will allow us to avoid using Robolectric with a lot of tests that
mock the Account class. Until now we had to use Robolectric because of
the static array initializer calling Color.parseColor().
2018-03-24 06:05:11 +01:00