Commit graph

942 commits

Author SHA1 Message Date
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
cketti
b1faba725f Remove LocalFolder.purgeToVisibleLimit()
The method was only called at the end of a mailbox sync. But during sync
another mechanism already destroyed messages outside of the sync window.
2019-12-01 15:06:27 +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
85a0c1af4d use Parcelize instead of manual Parcelable implementation 2019-11-26 16:31:09 +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
f60477cba6 Preparing for version 5.701 2019-11-24 01:34:08 +01:00
cketti
6ff1b67a7f Version 5.700 2019-11-23 21:04:28 +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
cketti
60e6850b97 Add changelog for 5.700 2019-11-23 20:35:49 +01:00
cketti
455162a8c6 Add support for old account shortcut intents 2019-11-23 03:10:42 +01:00
cketti
60377c1285 Update PendingIntent used when clicking the unread widget 2019-11-22 17:09:21 +01:00
cketti
6c96642dba Move UnreadWidgetProvider back to old location 2019-11-22 16:22:29 +01:00
cketti
53c6e54caa Copy changelog entries from 5.6-MAINT branch 2019-11-22 14:15:12 +01:00
cketti
bd6561191d Update translations from Transifex 2019-11-22 13:27:30 +01:00
cketti
5948191b56
Merge pull request #4281 from k9mail/startup_theme
Startup theme
2019-11-22 13:21:42 +01:00
cketti
ff44def285
Merge pull request #4275 from k9mail/account_colors
Change account color picker
2019-11-22 13:20:34 +01:00
cketti
c01ec3a9bf Optimize startup theme for users not overriding the system theme
This will bring back the "white flash" for users on Android 9+ who
use a light theme for the system UI but configured K-9 Mail to use its
dark theme. But it gives a much better user experience when using the
default theme setting ("Use system default").
2019-11-22 04:29:30 +01:00
cketti
11d556c21a Merge 'values-v21' folder contents into 'values' folder 2019-11-22 04:10:27 +01:00
cketti
ba9a107884
Merge pull request #4278 from k9mail/remove_remote_control
Remove "remote control" functionality
2019-11-22 04:04:49 +01:00
cketti
c548a8074f
Merge pull request #4277 from k9mail/storage_location
Remove option to store database on "external storage"
2019-11-22 04:03:50 +01:00
cketti
4b1488c41a Define the first three account colors to use 2019-11-22 00:29:48 +01:00
ByteHamster
09b4fbdd34 Use material colors for account colors 2019-11-21 23:54:18 +01:00
cketti
b67bfe00a6 Use pen icon for 'compose' action 2019-11-21 23:37:24 +01:00
cketti
4f2e199267 Don't send broadcast Intents for new/deleted messages 2019-11-21 18:31:39 +01:00
cketti
3030d0ec0e Remove 'RemoteControlService' 2019-11-21 18:26:45 +01:00
cketti
59244f52ff Remove ability to store database on "external storage"
If an account database is currently stored on "external storage" we
move it back to internal storage.
2019-11-21 16:43:20 +01:00
cketti
a64f90cd68 Read account colors from resource array 2019-11-21 02:17:43 +01:00
cketti
b7e8200f06 Use 'AccountCreator' instances instead of object 2019-11-21 02:14:32 +01:00
cketti
89f604357b Convert 'AccountCreator' to Kotlin 2019-11-21 01:48:30 +01:00
cketti
45b9a7bd91 WIP: Renaming file 'AccountCreator' with Kotlin extension 2019-11-21 01:34:07 +01:00
cketti
3ea938de34 Remove HoloColorPicker 2019-11-21 01:33:57 +01:00
cketti
11c9657b56 Switch from HoloColorPicker to "default" ColorPickerPreference 2019-11-21 01:33:57 +01:00
cketti
3272dc46fe Remove 'settings' action from message list toolbar 2019-11-20 20:38:59 +01:00
cketti
c3496f4bdf Hide 'expunge' action unless expunge policy is set to manual 2019-11-20 20:38:59 +01:00
cketti
a3dee1180e Remove 'check mail' button in message list toolbar
"Pull down to refresh" is now the only way to update the message list.
2019-11-20 20:38:59 +01:00
cketti
91e43fbbfb Remove unused resources 2019-11-20 17:25:25 +01:00
cketti
6dfe707858
Merge pull request #4269 from k9mail/update_koin
Update to Koin 2.0.1
2019-11-20 16:09:49 +01:00
cketti
9655216606 Update to Koin 2.0.1 2019-11-20 15:38:11 +01:00
cketti
cb84cbfcff
Merge pull request #4268 from k9mail/disable_push_in_setup
Remove Push setting from 'AccountSetupOptions'
2019-11-20 02:40:17 +01:00
cketti
92f095a244 Remove Push setting from 'AccountSetupOptions' 2019-11-19 15:56:11 +01:00
cketti
1d781b93eb Switch to using safe-content-resolver-v21 2019-11-19 15:27:04 +01:00
cketti
a097c7761a Remove version checks for API 21 devices 2019-11-19 15:24:17 +01:00
cketti
316ea451b1 Remove conditional code regarding lock screen notifications 2019-11-19 15:22:07 +01:00
cketti
3b9d973091 Remove 'RigidWebView' which is no longer necessary 2019-11-19 15:19:12 +01:00
cketti
3a3c6e8332 Remove now unused code in 'K9WebViewClient' and simplify implementation 2019-11-19 15:15:13 +01:00
cketti
7a4bc94dc5 Update OkHttp to latest version 2019-11-19 15:02:42 +01:00
cketti
1303430e73
Merge pull request #4263 from k9mail/remove_unused_code
Remove unused code
2019-11-18 16:55:06 +01:00
cketti
ee7921053e
Merge pull request #4262 from k9mail/message_list_widget
Fix issue in message list widget layout
2019-11-18 16:54:46 +01:00
cketti
1398532e92 Remove unused ContactItem 2019-11-18 02:58:48 +01:00
cketti
c630b4deaf Remove empty file 2019-11-18 02:52:04 +01:00
cketti
b7127168a0 Remove unused ColorChip(Provider) 2019-11-18 02:46:28 +01:00
cketti
1335296b65 Replace color references for layout preview 2019-11-18 02:41:39 +01:00
cketti
18c62f15af Don't use theme attribute in layout used by message list widget 2019-11-18 02:09:23 +01:00
cketti
bbbec7bf3d Switch from android-job to workmanager 2019-11-17 17:03:30 +01:00
cketti
57ff989edd Add kotlinOptions.jvmTarget to Gradle projects using Kotlin 2019-11-17 14:45:05 +01:00
cketti
1294726667
Merge pull request #4259 from k9mail/targetSdkVersion_28
Set targetSdkVersion to 28
2019-11-17 13:49:05 +01:00
cketti
36da0b79a7 Disable Koin logging 2019-11-17 02:04:50 +01:00
cketti
8dc3fd4ebb Set compileSdkVersion to 29 2019-11-17 01:41:46 +01:00
cketti
7f9b8678a1 Use build script variable for targetSdkVersion 2019-11-17 01:28:52 +01:00
cketti
4f0e90a417 Don't refresh Pusher via JobManager 2019-11-15 03:37:30 +01:00
cketti
dd0c25d9f5 Rewrite "poll folders" settings to include "push folders" 2019-11-15 03:17:44 +01:00
cketti
d67aa773e6 Hide Push-related options in folder settings 2019-11-14 19:34:10 +01:00
cketti
5b2edcf9fb Hide Push-related options in account settings 2019-11-14 19:02:23 +01:00
cketti
3470ee8774 Update Robolectric to 4.2.1
Not going directly to 4.3.1 because of this issue:
https://github.com/robolectric/robolectric/issues/5245
2019-11-13 17:37:37 +01:00
cketti
e3973096d3 Remove Checkstyle 2019-11-13 16:51:52 +01:00
cketti
56a37d9e14 Remove FindBugs
It's not maintained anymore and we're not currently using it.
2019-11-13 16:41:51 +01:00
cketti
105622a999 Use variable for 'sourceCompatibility' and 'targetCompatibility' values 2019-11-13 16:26:29 +01:00
cketti
347d33849c Remove AccountStats 2019-11-06 17:59:31 +01:00
cketti
f0dabcc516 Rename AccountStatsCollector to UnreadMessageCountProvider 2019-11-06 17:59:31 +01:00
cketti
3114c6ef90 Replace MessagingController.getSearchAccountStatsSynchronous()…
…with getUnreadMessageCount()
2019-11-06 17:59:04 +01:00
cketti
24a22beccc Replace MessagingController.getAccountStats() with getUnreadMessageCount() 2019-11-06 17:59:04 +01:00
cketti
c41382e3d4 Remove MessagingListener.searchStats() 2019-11-06 17:59:04 +01:00
cketti
7f02272ae0 Remove unused MessagingListener.accountStatusChanged() 2019-11-06 17:59:04 +01:00
cketti
8831923477
Merge pull request #4242 from k9mail/remove_unused_settings
Remove unused options from general settings
2019-11-06 17:58:41 +01:00
cketti
e42c8d4c50
Merge pull request #4236 from k9mail/change_settings_screen
Move "About" to the bottom of the settings screen
2019-11-06 15:50:14 +01:00
cketti
0168789047
Merge pull request #4235 from k9mail/remove_folder_list_activity
Remove 'FolderList' activity
2019-11-06 15:49:37 +01:00
cketti
52f930135c Remove "Show account size" setting 2019-11-06 15:34:11 +01:00
cketti
e1cc1760f5 Remove "Count search results" setting 2019-11-06 15:30:13 +01:00
cketti
570c478dd4 Fix activity-alias so there aren't two launcher entries 2019-11-06 04:31:26 +01:00
cketti
e3c6b7df34 Launch 'OnboardingActivity' when no account exists yet 2019-11-06 04:29:35 +01:00
cketti
cee4a4fe46 Move "About" to the bottom of the settings screen 2019-11-05 23:26:41 +01:00
cketti
818239fa12 Clean up names 2019-11-05 23:08:08 +01:00
cketti
828e851dc6 Rename 'FolderList' to 'ManageFoldersActivity' 2019-11-05 23:08:08 +01:00
cketti
82d46b2880 Don't launch 'FolderList' from 'MessageList'
…except when selecting "Manage folders".
2019-11-05 23:08:08 +01:00
cketti
8b7a5a80c7 Don't launch 'FolderList' from 'LauncherShortcuts' 2019-11-05 23:08:08 +01:00
cketti
c1d338e213 Don't launch 'FolderList' from 'UnreadWidgetDataProvider' 2019-11-05 23:08:08 +01:00
cketti
2fcef664aa Remove 'Accounts' activity 2019-11-03 18:23:09 +01:00
cketti
5aa3afc5e8 Change 'K9NotificationActionCreator' to always launch 'MessageList' 2019-11-03 18:23:09 +01:00
cketti
8df81ab202 Never start 'Accounts' from 'MessageCompose' 2019-11-03 17:57:09 +01:00
cketti
b482e9a0ba Never start 'Accounts' from 'FolderList' 2019-11-03 17:53:41 +01:00
cketti
93fe0b0b54 Never start 'Accounts' from 'MessageList' 2019-11-03 17:51:41 +01:00
cketti
ce562e4938 Launch 'MessageList' instead of 'Accounts' from 'AccountSetupNames' 2019-11-03 17:47:54 +01:00
cketti
336542daa5 Use NavController in 'WelcomeFragment' to start 'MessageList' 2019-11-03 17:43:03 +01:00
cketti
7c40f0f3d2 Open default account if no Intent extras have been supplied 2019-11-03 17:39:27 +01:00
cketti
2a96e5d339
Merge pull request #4232 from k9mail/remove_all_messages_account
Remove special account "All messages"
2019-11-03 17:05:14 +01:00
cketti
99b44bd5ca Remove special account "All messages" 2019-11-01 03:21:43 +01:00
cketti
9a197840e2 Replace WelcomeMessage with OnboardingActivity
Make use of new SettingsImportFragment from WelcomeFragment.
2019-11-01 01:58:22 +01:00
cketti
457f27e154
Merge pull request #4225 from k9mail/fix_fallback_image_loading
Fix contact picture flickering in message list
2019-10-28 14:19:02 +01:00
cketti
d1aa8da309
Merge pull request #4223 from k9mail/about_fragment
Convert AboutActivity to a fragment
2019-10-28 14:18:39 +01:00
cketti
2adac1d353
Merge pull request #4224 from k9mail/deprecate_webdav
Don't allow users to create new WebDAV accounts
2019-10-28 14:16:39 +01:00
cketti
e7d8cda043 Fix contact picture flickering in message list
Change the way we try to load contact pictures and generate contact
letter fallback images afterwards, so Glide caches the result.
2019-10-22 03:40:58 +02:00
cketti
04756c1d10 Don't allow users to create new WebDAV accounts 2019-10-21 01:35:02 +02:00
cketti
79301489e9 Convert AboutActivity to a fragment 2019-10-20 05:08:41 +02:00
cketti
5bdbd8b962 Add 'SettingsImportFragment' 2019-10-19 23:05:01 +02:00
ByteHamster
b981cd0efd Fix crash when enabling openpgp
In onDismiss, getActivity returns null if the fragment is covered by the
chooser intent (F-Droid vs Google Play).
2019-10-13 11:48:40 +02:00
cketti
bc713807cd Don't fetch list of folders from adapter in worker thread 2019-10-04 00:10:34 +02:00
cketti
1005f5e300 Retain filter when updating the folder list 2019-10-04 00:04:51 +02:00
cketti
b7f4ab9a70 Simplify FolderListFilter 2019-10-03 23:57:01 +02:00
cketti
9df97445c2 Rename fields in FolderListFilter 2019-10-03 23:57:01 +02:00
cketti
80c2d20c9b Clean up comments in FolderListFilter 2019-10-03 23:57:01 +02:00
cketti
f2bf8a9fda Port item ID fix from PR #4180 2019-10-03 23:57:01 +02:00
ByteHamster
88edc080b5 Make ChooseFolder use new FolderListFilter 2019-10-03 23:57:01 +02:00
ByteHamster
6550a5662f Using interface in FolderListFilter 2019-10-03 22:40:20 +02:00
ByteHamster
e32a8ca486 Added icons to ChooseFolder 2019-10-03 22:40:20 +02:00
cketti
be43277b4d
Merge pull request #4189 from k9mail/bold_sender_name
Show sender name in bold for unread messages
2019-10-03 22:35:11 +02:00
tobiasKaminsky
6083945b86
fix direct share: wrong package name specified
Signed-off-by: tobiasKaminsky <tobias@kaminsky.me>
2019-09-27 13:58:28 +02:00
cketti
0985c5783b Show sender name in bold for unread messages 2019-09-06 16:22:11 +02:00
cketti
fde8c26268
Merge pull request #4181 from k9mail/hide_account_chip
Don't show account chip in message list when showing single account
2019-09-05 12:39:20 +02:00
cketti
59237ef3a6
Merge pull request #4180 from k9mail/fix_folder_list_adapter
Fix item ID in FolderListAdapter and minor code cleanup
2019-09-05 12:38:37 +02:00
Robin Schmidt
0756c69514 Message list items were missing a left margin when contact picture was disabled/hidden in settings. 2019-09-04 08:43:56 +02:00
cketti
d78efe5bf0
Merge pull request #4184 from ByteHamster/unknown-icon
Updated fallback contact picture
2019-09-01 22:29:17 +02:00
ByteHamster
ec640867b9 Updated fallback contact picture 2019-09-01 20:23:56 +02:00
ByteHamster
4ae8435f2f Changed chip and answered arrow position 2019-09-01 19:19:46 +02:00
cketti
a4d2079c18 Don't show account chip in message list when showing single account 2019-09-01 17:55:31 +02:00
cketti
b486a2e3ba Remove hungarian notation from FolderListAdapter 2019-09-01 17:32:15 +02:00
cketti
4c76c8d0ea Remove unused code from FolderListFilter 2019-09-01 17:20:47 +02:00
cketti
d097b2821c Remove unused/unnecessary methods 2019-09-01 17:16:04 +02:00
cketti
6e673a4e6a Add missing override annotations 2019-09-01 17:14:01 +02:00
cketti
103bff73b2 Use a folder's database ID as list item ID 2019-09-01 17:11:50 +02:00
cketti
3a158a7c14
Merge pull request #4177 from k9mail/change_account_chip
Change shape and position of account chip in message list
2019-09-01 17:04:05 +02:00
cketti
d1f15430aa
Merge pull request #4178 from ByteHamster/folderManager
Folder manager
2019-09-01 16:57:02 +02:00
ByteHamster
f9b6c9f27a Added icons to FolderList 2019-09-01 15:35:48 +02:00
ByteHamster
ddc0f25bbb Changed activity title to 'Manage folders' 2019-08-31 20:15:48 +02:00
cketti
1c29f1c09a
Merge pull request #4162 from ByteHamster/contact-picture-colors
Material contact picture colors
2019-08-31 19:36:58 +02:00
cketti
00f6d7eab7 Change account chip to be much smaller 2019-08-31 19:36:06 +02:00
ByteHamster
37bc7c62da Material contact picture colors 2019-08-31 19:17:17 +02:00
cketti
581937a7e3
Merge pull request #4157 from k9mail/remove_message_list_checkboxes
Remove selection checkboxes in message list
2019-08-31 17:15:24 +02:00
cketti
a8f4d337c1
Merge pull request #4158 from k9mail/GH-4153_AbsoluteSizeSpan_fix
Don't use AbsoluteSizeSpan when default font size is configured
2019-08-31 17:14:24 +02:00
cketti
4886f2f8fc Fix MessageList crash when required Intent extras are missing 2019-08-15 16:46:54 +02:00
cketti
16535af7e4 Fix MessageList crash when no account is provided in search Intent 2019-08-15 16:19:27 +02:00
cketti
4815a2f1a4 Fix crash when launching 'LauncherShortcuts' with unexpected action 2019-08-15 15:51:44 +02:00
cketti
4e12589656 Don't use AbsoluteSizeSpan when default font size is configured 2019-08-15 02:50:21 +02:00
cketti
26c7c76395 Remove setting for message list check boxes 2019-08-15 02:10:46 +02:00
cketti
f919a84ab9 Remove selection check box from message list 2019-08-15 02:10:46 +02:00
cketti
168e090846
Merge pull request #4154 from k9mail/MessageListAdapter_tests
Add some tests for MessageListAdapter
2019-08-15 01:05:35 +02:00
cketti
731dc7e948 Add tests for MessageListAdapter 2019-08-15 00:38:06 +02:00
cketti
836632d966
Merge pull request #4148 from bhm/feature/decouple-message-viewholder
View finding logic for MessageViewHolder
2019-08-12 02:51:45 +02:00
Jacek Kuzniarski
8c8c3a3a30 Change MessageViewHolder::contactBadge processing to achieve fully non nullable properties 2019-08-10 17:22:37 +02:00
Jacek Kuzniarski
d01c75774c Change MessageViewHolder::contactBadge to val 2019-08-10 17:20:47 +02:00
Jacek Kuzniarski
75db15ebbd Move MessageViewHolder::flagged to Androidx::isVisible 2019-08-10 17:19:11 +02:00
Jacek Kuzniarski
3fc5d0e424 Convert MessageViewHolder to Kotlin 2019-08-10 17:18:01 +02:00
Jacek Kuzniarski
cf2c67efde Renaming file 'MessageViewHolder' with Kotlin extension 2019-08-08 20:36:07 +02:00
cketti
5118c0312a Rewrite 'IdentityHelper' to use Sequence operations 2019-08-07 17:17:06 +02:00
cketti
b519b53cb6 Convert 'IdentityHelper' to Kotlin 2019-08-07 17:08:31 +02:00
cketti
83009e8602 WIP: Renaming file 'IdentityHelper' with Kotlin extension 2019-08-07 17:06:40 +02:00
cketti
47629ae35e
Merge pull request #4144 from k9mail/convert_to_kotlin
Convert 'ClipboardManager' to Kotlin
2019-08-07 16:40:33 +02:00
cketti
fd9324ca46
Merge pull request #4143 from bhm/feature/message-list-appearance
Add MessageListAppearance data class
2019-08-06 19:48:23 +02:00
Jacek Kuzniarski
470cf2f38b Decouple MessageListAdapter further from K9 class dependency 2019-08-06 08:45:25 +02:00
Jacek Kuzniarski
f9faa6d446 Add MessageListAppearance data class 2019-08-05 18:03:37 +02:00
cketti
261f404275
Merge pull request #4142 from k9mail/settingsimporter_password
Return additional information on settings import
2019-08-05 16:37:53 +02:00
cketti
ae29d90f2e Converting 'ClipboardManager' to Kotlin 2019-08-05 15:51:51 +02:00
cketti
6754177981 WIP: Renaming file 'ClipboardManager' with Kotlin extension 2019-08-05 15:51:51 +02:00
cketti
7523817ae8 Use Koin to inject ClipboardManager 2019-08-05 15:51:51 +02:00
cketti
2fe416b300
Merge pull request #4140 from k9mail/MessageListAdapter_refactoring
MessageListAdapter refactoring
2019-08-05 14:30:14 +02:00
cketti
c10e835e37 Return whether or not settings file included server passwords 2019-08-04 19:59:01 +02:00
cketti
766a13a5d9
Merge pull request #4128 from rspencer01/default-no-grey-unread
Change default to not set unread email backround grey
2019-08-03 22:14:11 +02:00
cketti
be00110fdd
Merge pull request #4124 from k9mail/message_list_stars
Use Material Design icons for star in message list (and message view)
2019-08-03 21:45:27 +02:00
cketti
36f3724344 Update import/export default value for "useBackgroundAsUnreadIndicator" 2019-08-03 21:37:57 +02:00
Robert Spencer
14f33e40a8 Change default to not set unread email backround grey 2019-08-03 21:34:20 +02:00
Jacek Kuzniarski
b0b69cc7dd Remove hungarian notation from MessageListAdapter 2019-08-03 21:13:40 +02:00
Jacek Kuzniarski
0229513977 Decouple MessageViewHolder from MessageListFragment
This removes the dependency of MessageListAdapter to MessageListFragment
2019-08-03 21:13:40 +02:00
Jacek Kuzniarski
10b80ae231 Decouple MessageListAdapter from MessageListFragment.getAccountFromCursor() 2019-08-03 21:13:40 +02:00
Jacek Kuzniarski
c832c6f11c Decouple MessageListAdapter from MessageListFragment.selected 2019-08-03 21:13:20 +02:00
Jacek Kuzniarski
7dc6019025 Decouple MessageListAdapter from MessageListFragment.uniqueIdColumn 2019-08-03 21:03:43 +02:00
Jacek Kuzniarski
82ba8c046e Decouple MessageListAdapter from MessageListFragment.activity 2019-08-03 21:00:32 +02:00
Jacek Kuzniarski
84b46fcab8 Decouple MessageListAdapter from MessageListFragment.activeMessage 2019-08-03 21:00:32 +02:00
Jacek Kuzniarski
e2e8dc653e Decouple MessageListAdapter from MessageListFragment.contactsPictureLoader 2019-08-03 21:00:32 +02:00
Jacek Kuzniarski
9e39744e9d Decouple MessageListAdapter from MessageListFragment.stars 2019-08-03 21:00:32 +02:00
Jacek Kuzniarski
387e8b9283 Decouple MessageListAdapter from MessageListFragment.checkboxes 2019-08-03 21:00:32 +02:00
Jacek Kuzniarski
178e239185 Decouple MessageListAdapter from MessageListFragment.showingThreadedList 2019-08-03 21:00:32 +02:00
Jacek Kuzniarski
a4a151afdc Decouple MessageListAdapter from MessageListFragment.senderAboveSubject 2019-08-03 21:00:31 +02:00
Jacek Kuzniarski
d1013ba901 Decouple MessageListAdapter from MessageListFragment.previewLines 2019-08-03 21:00:31 +02:00
Jacek Kuzniarski
8fa2ae65a8 Add MessageHelper as MessageListAdapter constructor parameter 2019-08-03 21:00:31 +02:00
Jacek Kuzniarski
2c5f32d6d3 Use Resources.getString() instead of Fragment.getString() 2019-08-03 21:00:31 +02:00
Jacek Kuzniarski
134206a1f0 Add LayoutInflater as MessageListAdapter constructor parameter 2019-08-03 21:00:31 +02:00
Jacek Kuzniarski
a8915812b5 Add Theme as MessageListAdapter constructor parameter 2019-08-03 21:00:31 +02:00
Jacek Kuzniarski
7ef770c1e6 Add Resources as MessageListAdapter constructor parameter 2019-08-03 21:00:31 +02:00
Jacek Kuzniarski
f923b0ec61 Convert 'MessageListAdapter' to Kotlin 2019-08-03 21:00:31 +02:00
cketti
b84cd45a74 WIP: Renaming file 'MessageListAdapter' with Kotlin extension 2019-08-03 21:00:31 +02:00
cketti
3c76ce9567 Use Material Design icon for star in message view 2019-07-24 18:42:06 +02:00
cketti
d05c0ae807 Use Material Design icon for star in message list 2019-07-24 18:42:06 +02:00
cketti
90601f3470 Scale down letter in contact picture fallback image 2019-07-24 17:54:46 +02:00
cketti
f73ef35892
Merge pull request #4117 from k9mail/remove_compact_mode
Remove message list compact mode
2019-07-24 17:20:57 +02:00
cketti
d4d1280a9c
Merge pull request #4114 from k9mail/drawer_unread_count
Display unread message count in drawer
2019-07-24 17:20:26 +02:00
cketti
6aac1f42a6 Remove message list compact mode 2019-07-19 17:29:10 +02:00
cketti
c8a8d0c669
Merge pull request #4115 from ByteHamster/developer-mode
Using K9.DEVELOPER_MODE in more places
2019-07-19 17:18:32 +02:00
cketti
11f69d2e02
Merge pull request #4116 from rspencer01/increase-subject-font-size
Increase subject font size in message list
2019-07-19 17:17:49 +02:00
Robert Spencer
c864b9c4be Increase subject font size 2019-07-19 15:49:16 +01:00
ByteHamster
52f61659fe Using K9.DEVELOPER_MODE in more places 2019-07-19 13:49:44 +02:00
cketti
3fcf736bd4 Stop observing old FoldersLiveData instances 2019-07-18 23:20:50 +02:00
cketti
1b4ec98973 Update folder list when unread count changes 2019-07-18 18:32:01 +02:00
cketti
f99bc6c380 Display a folder's unread count in drawer 2019-07-18 17:59:42 +02:00
cketti
096ee17871 Change FolderRepository.getDisplayFolders() to include unread count 2019-07-18 17:52:29 +02:00
cketti
52cb690da6 Throw exception when a database downgrade situation is encountered 2019-07-18 15:38:15 +02:00
Robert Spencer
e84b7948f6 Use rounded images for selecting recipients, and for the recipient list. 2019-07-11 20:33:04 +01:00
Robert Spencer
b083bb0173 Round contact images in message view and message list view
This commit has `ContactBadge` extend `CircleImageView` instead
of `ImageView`, thus rounding all the contact badges.  It introduces
the dependency `de.hdodenhof:circleimageview:3.0.0`.
2019-07-11 19:19:02 +01:00
cketti
119dea66cc Base startup theme on dark theme 2019-05-28 03:54:17 +02:00
cketti
cddf57d62e Restart activities if theme or language settings have changed 2019-05-28 03:51:56 +02:00
cketti
ec9d82dd90 Make "composer theme" setting not override action bar theme 2019-05-28 03:33:01 +02:00
cketti
f15d43d0bb Add import/export support for new theme setting 2019-05-28 02:41:48 +02:00
cketti
e7adf0b5ef Add migration to rewrite theme setting from LIGHT to FOLLOW_SYSTEM 2019-05-28 02:41:48 +02:00
cketti
2d0c698774 Switch to "use system default" theme option as default
On pre-API 28 Android versions hide the the "use system default" option
in settings. But we use the value AppTheme.FOLLOW_SYSTEM when the light
theme is selected. This way users who selected the light theme (or never
changed the setting at all) will get the "use system default" behavior
when they upgrade to Android 9+.
2019-05-28 02:41:48 +02:00
cketti
0bf59cf615 Add support to follow system default for night mode/dark theme 2019-05-28 02:41:48 +02:00
cketti
9bfc810257 Use AppCompat's DayNight theme for dark mode support 2019-05-28 02:41:48 +02:00
cketti
f08bd42c8a Rename theme properties in 'K9' 2019-05-28 02:41:48 +02:00
cketti
4bbc8c5486 Use different enums for app theme and "sub themes" 2019-05-28 02:41:48 +02:00
cketti
58371be677 Properly support different themes for message viewing and composing
Previously the quoted HTML in the compose screen was formatted using
the message view theme.
2019-05-28 02:41:48 +02:00
cketti
0b097d2acd Pass configuration to 'MessageWebView' instead of having it query 'K9' 2019-05-28 02:41:48 +02:00
cketti
be124ec896 Introduce ThemeManager to group theme-related logic 2019-05-28 02:41:48 +02:00
cketti
6257efa007 Make 'K9ActivityCommon' usable by all activities 2019-05-28 02:41:48 +02:00
cketti
8910fdf8c1 Change the way 'K9ActivityCommon' is initialized 2019-05-28 02:41:48 +02:00
cketti
2c17c25938 Convert 'K9ActivityCommon' to Kotlin 2019-05-28 02:41:48 +02:00
cketti
ab1c4fdb43 WIP: Renaming file 'K9ActivityCommon' with Kotlin extension 2019-05-28 02:41:48 +02:00
cketti
2d746e64ce Remove unused code from HtmlConverterTest 2019-05-24 14:05:35 +02:00
cketti
3e0855c5e1 Extract code to create HTML for use in a WebView to class 'DisplayHtml' 2019-05-24 14:05:35 +02:00
cketti
e6d35d85af Extract 'HTML to Spanned' functionality to separate class 2019-05-24 14:05:35 +02:00
cketti
eddd6827a4 Convert 'HtmlConverter' to Kotlin 2019-05-24 14:05:35 +02:00
cketti
e7b6d6b5d3 WIP: Renaming file 'HtmlConverter' with Kotlin extension 2019-05-24 14:05:35 +02:00
cketti
3db836ee21 Don't use enum ordinals when saving general settings 2019-05-22 20:07:21 +02:00
cketti
38c3e26921 Move legacy migrations from 'K9' to 'StorageMigrations' 2019-05-22 20:07:21 +02:00
cketti
e3e057d465 Fix ActivityListenerTest and remove unused strings 2019-05-22 01:52:37 +02:00
cketti
dd5e12e779 Rename debug logging property 2019-05-22 01:42:52 +02:00
cketti
113f51df94 Naming cleanup 2019-05-22 01:42:52 +02:00
cketti
871abe54ec Remove "showContactPicture" methods from 'K9' 2019-05-22 01:42:52 +02:00
cketti
1420214e04 Remove "useBackgroundAsUnreadIndicator" methods from 'K9' 2019-05-22 01:42:52 +02:00
cketti
71cd03ab57 Remove "hideTimeZone" methods from 'K9' 2019-05-22 01:42:50 +02:00
cketti
bcb2f72354 Remove "hideUserAgent" methods from 'K9' 2019-05-22 01:13:51 +02:00
cketti
ec2b9a3772 Remove "wrapFolderNames" methods from 'K9' 2019-05-22 01:13:51 +02:00
cketti
6d75e5abdd Remove "confirmMarkAllRead" methods from 'K9' 2019-05-22 01:13:51 +02:00
cketti
9f6d717af0 Remove "confirmDeleteFromNotification" methods from 'K9' 2019-05-22 01:13:51 +02:00