Commit graph

444 commits

Author SHA1 Message Date
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
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
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
47629ae35e
Merge pull request #4144 from k9mail/convert_to_kotlin
Convert 'ClipboardManager' to Kotlin
2019-08-07 16:40:33 +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
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
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
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
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
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
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
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