Commit graph

720 commits

Author SHA1 Message Date
cketti
5eceb0d682 Update translations 2020-03-02 16:28:02 +01:00
cketti
6bcc419e4e Fix bug where EditText for message body wasn't growing properly 2020-03-02 16:09:33 +01:00
cketti
e8d297a8fa Keep read position when switching apps
The bug seems to have been caused by a behavior change in LoaderManager.
Previously, onLoadFinished() wasn't called when the Loader returned the
same object as before. We now emulate this behavior by adding our own
checks.
2020-03-02 15:51:08 +01:00
cketti
916015b1f0 Convert 'MimeHeader' to Kotlin 2020-02-29 21:29:46 +01:00
cketti
b1c6a55115 Fix "Bcc all messages to" when switching accounts 2020-02-22 22:28:32 +01:00
Maurizio Pasquinelli
34373622ac Fix overlapping bcc and date 2020-02-19 19:57:39 +01:00
cketti
520eb13dc0
Merge pull request #4536 from k9mail/fix_memory_leaks
Fix some Activity leaks
2020-02-16 18:38:29 +01:00
cketti
ce7b59addf Clean up code in K9WebViewClient 2020-02-16 18:21:31 +01:00
FliegendeWurst
1a413e4a5c
Never open external links in our WebView (API level < 24) 2020-02-16 14:44:55 +01:00
cketti
d85e581485 Don't use GeneralSettingsDataStore as singleton
It holds a reference to the Activity that it was last used from.
2020-02-14 02:25:57 +01:00
cketti
caa7b6d797 Don't load 'hasMoreMessages' data in main thread 2020-02-12 23:22:57 +01:00
Meteor0id
cd21fb23eb
autodownload_message_size as base2 Bytes
Max message size is compared directly with message size, which is retrieved in the case of POP3 by a list command. List returns a size in bytes.

Out of that follows that the values for max download size are actually expressed as kibibytes and mebibytes
2020-02-11 03:38:14 +01:00
cketti
129cc2f32d Change SizeFormatter to properly use SI units 2020-02-09 01:10:17 +01:00
cketti
99b5f38a9c Make SizeFormatter.formatSize() an instance method 2020-02-09 00:20:49 +01:00
cketti
bee39ec03f Convert 'SizeFormatter' to Kotlin 2020-02-08 22:15:04 +01:00
cketti
de39ad28c5 WIP: Renaming file 'SizeFormatter' with Kotlin extension 2020-02-08 22:13:36 +01:00
ByteHamster
7fb6c4bfd8 Do not try to close search in onSaveInstanceState 2020-02-08 11:19:08 +01:00
ByteHamster
cdd7fdead2 Upgraded SearchPreference library to version 2.0.0 2020-02-07 18:31:58 +01:00
cketti
af7887d20d Version 5.705 2020-02-06 23:02:59 +01:00
cketti
96e76949a8 Update translations 2020-02-06 22:03:55 +01:00
cketti
9e06676d33 Update AndroidX Fragment to 1.2.1 2020-02-06 17:24:49 +01:00
cketti
c1c57cfd8d Update AndroidX Lifecycle to 2.2.0 2020-02-06 16:22:51 +01:00
cketti
68e8bed15d Update AndroidX AppCompat to 1.1.0 2020-02-06 15:59:22 +01:00
cketti
b5cfb4c02c Fix message lists being displayed on top of each other 2020-02-06 15:07:18 +01:00
cketti
67e2029d56 Never open external links in our WebView 2020-02-06 13:51:37 +01:00
cketti
86326ea0b9 Remove unused folder name from MessagingListener callbacks 2020-02-05 01:25:24 +01:00
cketti
ce372384bb
Merge pull request #4490 from k9mail/remove_gesture_detector
Remove unused SwipeGestureDetector
2020-01-29 14:32:33 +01:00
cketti
678ba2acee Remove unused SwipeGestureDetector 2020-01-28 23:32:49 +01:00
cketti
aa08570a45 Make sure FolderNameFormatter uses the correct Resources instance
This is necessary so special folder names are displayed in the language
configured by the user under general settings.
2020-01-28 17:22:12 +01:00
cketti
c726a2d902 Remove unused field 'lastCheckFailed' from FolderInfoHolder 2020-01-28 17:22:12 +01:00
cketti
533c9e5622 Remove unused code from FolderInfoHolder 2020-01-28 17:22:12 +01:00
cketti
846aabe598 Remove FolderInfoHolder.getDisplayName() 2020-01-28 17:22:12 +01:00
cketti
bf69052995
Merge pull request #4483 from k9mail/MessageListLoader_close_Cursor
Close Cursor in MessageListLoader
2020-01-28 16:14:52 +01:00
cketti
c5b113bb58
Merge pull request #4480 from k9mail/theme_fixes
Only use K9 themes in AndroidManifest.xml
2020-01-28 16:14:17 +01:00
Marc K
b7482b28ad Add MessageListAdapter tests for missing and empty subject 2020-01-28 11:33:10 +01:00
Marc K
3f199bb8c7 Allow missing (null) subject headers
Fixes #4484
2020-01-27 23:08:45 +01:00
cketti
642a20740a Close Cursor in MessageListLoader 2020-01-27 17:40:07 +01:00
cketti
9845b76338 Only use K9 themes in AndroidManifest.xml 2020-01-27 02:39:28 +01:00
ByteHamster
745708649c Make default progress 0% 2020-01-26 16:24:19 +01:00
cketti
1de6f3c48a Clean up MessageListFragment.setWindowProgress() 2020-01-23 16:36:21 +01:00
cketti
937882f836 Display progress when syncing a folder 2020-01-23 16:36:21 +01:00
cketti
28dadaf468
Merge pull request #4469 from k9mail/fix_LocalSearch_accounts
Fix crash when opening Unified Inbox
2020-01-23 16:35:12 +01:00
cketti
35031e800c
Merge pull request #4468 from k9mail/fix_MessageListExtractor
Fix MessageListExtractor to only read thread count when requested
2020-01-23 16:27:39 +01:00
cketti
0d3511cf53 Fix MessageListExtractor to only read thread count when requested
Turns out that sometimes we do have a column with index THREAD_COUNT_COLUMN
but it's the unique ID and not a thread count.
2020-01-22 22:40:10 +01:00
cketti
320f916098 Remove support for the magic ALL_ACCOUNTS constant from LocalSearch 2020-01-22 21:59:47 +01:00
cketti
ad731aa3d9 Fix bug in MessageListLiveData when using LocalSearch to retrieve accounts UUIDs 2020-01-22 21:19:55 +01:00
cketti
f8baaa60f6 Fix bug in MessageListLoader when using LocalSearch to fetch accounts 2020-01-22 21:05:15 +01:00
cketti
b99d445736 Remove unused message counts from MessagingListener.synchronizeMailboxFinished() 2020-01-22 17:16:06 +01:00
cketti
aeef338efd Remove unread count from MessagingListener.folderStatusChanged() 2020-01-22 17:02:16 +01:00
cketti
d0bb3a0524 Remove MessagingController.listFolders() and associated callbacks
We now use FolderRepository to retrieve the folder list. listFolders()
was only used to refresh the folder list from the server.
2020-01-21 14:45:55 +01:00
cketti
2fcaa8e16c Merge ActivityListener into MessageListActivityListener 2020-01-20 16:54:36 +01:00
cketti
37845d751a Remove unused functionality from ActivityListener 2020-01-20 16:43:33 +01:00
cketti
3dbdfb8882 Remove usage of ActivityListener in ManageFoldersActivity 2020-01-20 15:59:52 +01:00
cketti
e16c3ff21f Update Material Components to 1.1.0-rc02 2020-01-19 16:45:42 +01:00
cketti
0de96b6592 Update FastAdapter to 4.1.2 2020-01-19 16:27:53 +01:00
cketti
582eb27dd3 Update Material Drawer to 7.0.0 2020-01-19 16:27:53 +01:00
cketti
c2f518f8e2 Update kotlinx-coroutines to 1.3.2 and kotlinx-coroutines-android 1.3.0 2020-01-19 16:27:53 +01:00
cketti
9b2b82eee6 Update Mockito to 3.2.4 and Mockito-Kotlin to 2.2.0 2020-01-19 16:27:53 +01:00
cketti
6e7f7549f8 Revert "Add NavController to MessageList"
This reverts commit ac94879c
2020-01-15 16:10:55 +01:00
cketti
f98d6c95b3
Merge pull request #4446 from k9mail/navigation_main
Add NavController to MessageList
2020-01-14 16:34:54 +01:00
cketti
a873a1c41f
Merge pull request #4442 from k9mail/bye_CursorLoader
Switch MessageListFragment away from CursorLoader
2020-01-14 16:20:37 +01:00
cketti
ac94879c98 Add NavController to MessageList 2020-01-13 01:21:41 +01:00
cketti
53e3604274 Remove unread widget styles from styles.xml in 'ui' module 2020-01-12 23:28:59 +01:00
cketti
95c927b9f7 Remove Theme.K9Dialog 2020-01-12 19:37:41 +01:00
cketti
5b7738fc7f Stop using Holo context menu styles 2020-01-12 19:31:53 +01:00
cketti
ab61e80bc3 Switch MessageListFragment away from CursorLoader 2020-01-12 15:58:15 +01:00
cketti
4fa2fd7094
Merge pull request #4438 from k9mail/bye_CursorAdapter
Switch MessageListAdapter away from CursorAdapter
2020-01-12 13:59:52 +01:00
cketti
41bc3e10e9
Merge pull request #4440 from k9mail/improve_FoldersLiveData
Make MessageListViewModel only expose one LiveData for the folder list
2020-01-12 13:53:36 +01:00
cketti
b5be183eda Switch MessageListAdapter away from CursorAdapter 2020-01-12 13:44:19 +01:00
cketti
848b87c996 Make MessageListViewModel only expose one LiveData for the folder list 2020-01-11 01:48:12 +01:00
cketti
16d4e5dfc2 Replace CoroutineScopeViewModel with lifecycle-viewmodel-ktx library 2020-01-11 00:43:20 +01:00
cketti
f68da8fe04
Merge pull request #4432 from k9mail/message_list_item_data_class
Create MessageListExtractor to read from Cursor
2020-01-10 22:51:21 +01:00
cketti
d4df9274bb Extract code to read from Cursor to MessageListExtractor 2020-01-10 20:07:19 +01:00
cketti
57ef94ccd5 Version 5.704 2020-01-09 17:37:16 +01:00
cketti
ed77c652e6
Merge pull request #4434 from k9mail/remove_wrap_long_folder_names
Remove setting "Wrap long folder names"
2020-01-09 17:29:08 +01:00
cketti
b40a5f1ffd
Merge pull request #4433 from k9mail/string_constants
Move URLs from strings.xml to constants.xml
2020-01-09 17:23:53 +01:00
cketti
e0ba03c74b Remove unused setting "Wrap long folder names" 2020-01-09 17:02:33 +01:00
cketti
8955de30eb Move URLs from strings.xml to constants.xml 2020-01-09 16:40:24 +01:00
cketti
aab4ca78fc Refactor code in MessageListAdapter 2020-01-09 14:50:22 +01:00
cketti
67468687e5 Simplify LocalFolder.open() 2020-01-09 14:14:52 +01:00
cketti
2d470c73a0 Move FolderType and FolderClass out of Folder 2020-01-09 14:08:41 +01:00
cketti
5f9999e173 Change LocalFolder to no longer extend Folder 2020-01-09 14:08:41 +01:00
cketti
b336ad283f
Merge pull request #4046 from ByteHamster/mark-as-read-on-delete
Mark messages read when deleting
2020-01-08 19:00:38 +01:00
ByteHamster
1bac17d244 Added setting to mark messages read when deleting 2020-01-08 18:44:46 +01:00
cketti
aaaf75dc6f
Merge pull request #4421 from k9mail/special_folders
Properly configure special folders during (initial) folder sync
2020-01-08 00:39:46 +01:00
cketti
b504e6a83a Move special folder handling out of FolderRepository 2020-01-02 20:33:17 +01:00
Marcus Hoffmann
c1bdd9ee09 add background color to adaptive icons
This adds a desaturated version of K9-Mails envelope color as the
adaptive icon background color.

This should look a lot better than a plain white background.

Also slightly enlarge the icon shape.
2020-01-02 16:19:39 +01:00
cketti
2791ef9920 Version 5.703 2019-12-22 20:05:06 +01:00
cketti
7095cdee6f Update translations from Transifex 2019-12-22 19:27:22 +01:00
cketti
39b286bddd Update MaterialDrawer library 2019-12-22 04:23:07 +01:00
cketti
593408d485 Simplify code to add/remove folders to drawer 2019-12-22 04:23:07 +01:00
cketti
270aa7082f Use sticky footer in drawer 2019-12-22 04:11:07 +01:00
cketti
617624c84e
Merge pull request #4390 from k9mail/keep_message_list_state
Remove launchMode attribute from 'MessageList'
2019-12-19 14:07:06 +01:00
cketti
a946523161
Merge pull request #4389 from k9mail/choose_folder
Update "Choose Folder" screen
2019-12-19 14:00:25 +01:00
cketti
97a75a54ef Remove launchMode attribute from 'MessageList'
Without this change backgrounding the app and then going back to it will
call onNewIntent(), which in turn will open the default folder.
2019-12-18 18:34:07 +01:00
cketti
3b63b4f7bf Save state across configuration changes in 'ChooseFolderActivity' 2019-12-18 15:29:52 +01:00
cketti
c1a301523d Honor 'scrollToFolder' argument in 'ChooseFolderActivity' 2019-12-18 15:17:45 +01:00
cketti
8325d2b532 Honor 'showDisplayableOnly' argument in 'ChooseFolderActivity' 2019-12-18 15:00:34 +01:00
cketti
399f0bab41 Add method to build 'ChooseFolderActivity' launch intent 2019-12-18 14:50:17 +01:00
cketti
a7510bcec5 Clean up 'ChooseFolderActivity' 2019-12-18 04:33:16 +01:00
cketti
e2dfc05f60 Fix filtering folders by display mode in 'ChooseFolderActivity' 2019-12-18 04:06:34 +01:00
cketti
198b1bcd6e Fix filtering the folder list in 'ChooseFolderActivity' 2019-12-18 03:39:49 +01:00
cketti
d7b19a1ba7 Use RecyclerView in 'ChooseFolderActivity' 2019-12-18 03:32:10 +01:00
cketti
af304dbd6a Use 'FoldersLiveData' in 'ChooseFolderActivity' 2019-12-18 03:18:14 +01:00
cketti
04734e7055 Create new package for 'ChooseFolderActivity' 2019-12-18 02:44:24 +01:00
cketti
8e0f6fa8c2 Convert 'ChooseFolder' to Kotlin 2019-12-18 02:43:12 +01:00
cketti
a64556eb79 WIP: Renaming file 'ChooseFolder' with Kotlin extension 2019-12-18 02:24:52 +01:00
cketti
40127d512b Remove hungarian notation in 'ChooseFolder' 2019-12-18 02:23:28 +01:00
cketti
84327e085d Don't pass Folder instance to Backend 2019-12-18 01:21:12 +01:00
cketti
615cad7414
Merge pull request #4375 from k9mail/fix_add_identity_crash
Fix crash when trying to create a new identity
2019-12-17 02:34:59 +01:00
cketti
a4b4edcbaa Fix crash when trying to create a new identity 2019-12-14 15:29:31 +01:00
cketti
7327dd1cde Fix crash when changing focus using hardware keyboard 2019-12-13 15:55:06 +01:00
cketti
45dcbc90ee Version 5.702 2019-12-13 15:21:40 +01:00
cketti
5346c08ba3 Clean up 'ManageFoldersActivity' 2019-12-13 14:41:24 +01:00
cketti
b0d105b01c Convert 'ManageFoldersActivity' to use RecyclerView 2019-12-13 14:41:24 +01:00
cketti
5a6fb46343 Update 'FoldersLiveData' when accounts change
This is so we update folder lists when the display mode is changed.
2019-12-13 14:41:24 +01:00
cketti
b793f48afe Use 'FoldersLiveData' in 'ManageFoldersActivity' 2019-12-13 14:41:24 +01:00
cketti
bdb244badf Remove unused functionality from 'ManageFoldersActivity' 2019-12-13 14:30:43 +01:00
cketti
c015b1e22a Create new package for 'ManageFoldersActivity' 2019-12-13 14:30:43 +01:00
cketti
303c7a6e95 Convert 'ManageFoldersActivity' to Kotlin 2019-12-13 14:30:07 +01:00
cketti
4aa54baf8e WIP: Renaming file 'ManageFoldersActivity' with Kotlin extension 2019-12-13 14:30:07 +01:00
cketti
da692ce447 Avoid name conflicts with fields in base class 2019-12-13 14:30:07 +01:00
cketti
a084e8e0db
Merge pull request #4362 from k9mail/back_button_closes_drawer
Close drawer when back button is pressed
2019-12-13 00:43:02 +01:00
cketti
ff138be49a Close drawer when back button is pressed 2019-12-12 15:11:36 +01:00
cketti
df2711d520 Add DefaultFolderProvider to decide which folder to display by default 2019-12-12 00:47:58 +01:00
cketti
15a0bed5c8
Merge pull request #4353 from ByteHamster/fix-crash-theme-change
Fixed crash when changing theme
2019-12-10 12:11:29 +01:00
ByteHamster
a1c3ae6d0e Fixed crash when changing theme 2019-12-09 23:51:43 +01:00
cketti
21231bc964 Clean up code in 'AccountSetupAccountType' 2019-12-03 20:31:33 +01:00
cketti
59dc541591 Convert 'AccountSetupAccountType' to Kotlin 2019-12-03 20:10:41 +01:00
cketti
da6ea3daf9 WIP: Renaming file 'AccountSetupAccountType' with Kotlin extension 2019-12-03 20:07:50 +01:00
cketti
33c875e725 Version 5.701 2019-12-02 03:03:57 +01:00
cketti
837e11ef53 Update translations 2019-12-02 02:08:12 +01:00
cketti
dad7f1963b
Merge pull request #4322 from k9mail/account_defaults
Change some account defaults
2019-12-02 01:57:06 +01:00
cketti
755d47a247 Disable sync notifications by default
Also remove the option to configure the sync notification during account
setup.
2019-12-01 18:30:26 +01:00
cketti
b23be23efb Never display folders when showing the Unified Inbox 2019-12-01 18:05:16 +01:00
cketti
814e25eeb4 Code cleanup 2019-12-01 16:37:49 +01:00
ByteHamster
72d7602944 Use account color as accent color in drawer
Use slightly different dark theme highlight colors
Chose the colors so they have WCAG AA contrast on #333333 background
2019-12-01 16:18:46 +01:00
Vincent Breitmoser
6a73e7e3ea Update FastAdapter and MaterialDrawer libraries 2019-11-29 16:31:12 +01:00
cketti
93d0e14b68 Fix code style issues found by ktlint 2019-11-29 13:44:00 +01:00
cketti
88d863c4c2 Add ktlint and Kotlin code style settings for Android Studio 2019-11-29 13:39:16 +01:00
cketti
a6af0469f4 Coroutine fixes 2019-11-29 13:26:05 +01:00
Vincent Breitmoser
6136926451 Move some async jobs into background thread
Fixes issues from c179ace548
2019-11-28 22:48:04 +01:00
Dominik Schürmann
a97b38643d update preferenceFix library to 1.1.0 2019-11-28 18:12:12 +01:00
cketti
66ae90c11d
Merge pull request #4290 from k9mail/remove_start_in_unified_inbox_setting
Remove "Start in Unified Inbox" setting
2019-11-26 17:08:35 +01:00
Vincent Breitmoser
ac85f8af54 remove hungarian notation from EditIdentity 2019-11-26 16:32:56 +01:00
Vincent Breitmoser
2296c6f757 convert Identity to Kotlin 2019-11-26 15:56:28 +01:00
cketti
d6d8ccdf66 Remove "Start in Unified Inbox" setting 2019-11-26 15:52:19 +01:00
Vincent Breitmoser
0aec40bf21 convert EditIdentity to Kotlin 2019-11-26 15:32:56 +01:00
cketti
0e911d0ad5
Merge pull request #4284 from k9mail/fix_app_update_issues
Fix launcher shortcuts and home screen widgets
2019-11-23 20:55:30 +01:00
cketti
c50fa472ba
Merge pull request #4283 from k9mail/changelog
Update changelog
2019-11-23 20:50:23 +01:00