cketti
8d652b2f61
Fix some compiler warnings
2012-12-07 15:50:55 +01:00
cketti
7b49f67c51
Remove unused methods
2012-12-07 15:47:15 +01:00
cketti
bc4fb530d0
Remove all code using the old unread/flagged count database columns
2012-12-07 15:45:36 +01:00
cketti
04ec2abd2c
Use local unread/flagged count in folder list and message list
2012-12-07 15:04:53 +01:00
cketti
41d608f3be
Refresh action bar title in FolderList when unread count was calculated
2012-12-07 14:25:30 +01:00
cketti
cf390861d6
Use constant "UUID" for search accounts
...
This way we can match the account stats to the search accounts when the
Accounts activity is restarted.
2012-12-07 14:06:03 +01:00
cketti
4ccb1c952a
Set action bar title for Accounts activity in onCreate()
2012-12-07 13:43:42 +01:00
cketti
144884080d
Retain unread count in Accounts activity during configuration changes
2012-12-07 13:35:49 +01:00
cketti
8100e00523
Remove leading space in action bar title of Accounts activity
2012-12-07 13:08:01 +01:00
cketti
d3e840a9ee
Only list messages in searchable folders under "All messages"
2012-12-07 12:55:32 +01:00
cketti
251428e963
Restore behavior of unread/flagged filtered message list
...
The unread/flagged count/view for accounts now excludes special folders
and only includes displayable folders as specified by the display class.
2012-12-07 12:03:04 +01:00
cketti
73757af680
Only count local messages for unread/flagged count
...
Currently only the Accounts activity uses the new count.
While working on this I realized that the unread/flagged search for
accounts currently looks for unread/flagged messages in all folders, not
all displayable folders without special folders (Trash, Spam, Outbox,
Sent, Drafts) like we used to.
Also, the "All messages" search currently doesn't limit the search to
searchable folders like it is supposed to.
2012-12-07 05:34:44 +01:00
Andrew Chen
9a380c69ad
Strip RE/FW from the MessageList subject line for thread subjects.
...
"Be like Outlook."
2012-12-06 17:41:39 -08:00
Andrew Chen
c81f68af33
Remove the progress spinner when not in use so that the "Load more..." text is centered.
2012-12-06 17:25:56 -08:00
cketti
b4bd80baa2
Fix "up" logic in MessageList
...
Fixes issue 4727
2012-12-06 06:26:39 +01:00
cketti
26b462a90e
Refresh the list when returning to the message list activity
2012-12-06 06:26:39 +01:00
cketti
b04f1b4319
Add an "empty view" to the message list
...
This will display a spinning progress indicator while the message list
is loaded from the database.
2012-12-06 06:26:39 +01:00
cketti
d5bb462917
Don't create Message objects when changing flags of selected messages
...
This changes the interface to MessagingController and the way flags are
updated in the database. Now messages aren't changed one by one but in
batches of 500. This should give better performance, but breaks the
unread and flagged count. I'm not very sad about this, because now we
can move towards only displaying the number of unread/flagged messages
in the local database.
2012-12-06 06:26:38 +01:00
cketti
c0b5255e24
Make most important flags separate database columns
...
This is the first step to speed up searches and flag updates.
2012-12-04 05:13:58 +01:00
cketti
d30cda26fb
Fix database version cache logic
2012-12-04 04:55:52 +01:00
cketti
fcc9e37f66
Add file missing in last commit
2012-12-01 08:29:25 +01:00
cketti
b2098c8d1c
Add activity that is displayed during database upgrades
...
See UpgradeDatabases.java for a detailed description of the upgrade
process.
2012-12-01 08:02:55 +01:00
cketti
f67d543510
Remove unused imports
2012-11-27 17:22:58 +01:00
cketti
2db8034c31
Use one database transaction when doing bulk flag changes
...
Previously we used one transaction per message. For 500 messages the
database updates alone took over 30s on my Nexus 7.
2012-11-27 16:46:59 +01:00
cketti
3b022cd72f
Remove excessive debug logging
2012-11-27 16:33:53 +01:00
cketti
38e8fc182c
Don't use LocalSearch object in launcher shortcut intents
2012-11-27 00:50:32 +01:00
cketti
cd3cc88fd4
Fix "Notification opens unread messages"
2012-11-27 00:15:21 +01:00
cketti
689f12a7f8
Don't use FLAG_ACTIVITY_SINGLE_TOP to start MessageList
...
We currently don't implement onNewIntent() so using
FLAG_ACTIVITY_SINGLE_TOP won't work.
2012-11-27 00:01:51 +01:00
Jesse Vincent
c870c5acbc
make the checkmark a little wider.
2012-11-24 17:44:07 -05:00
Jesse Vincent
134b1f1b78
Hide the threaded view wrapper to get slightly better spacing
2012-11-24 14:42:57 -05:00
cketti
b96e7bb058
Fix NPE related to changed initialization order in Android 4.2
2012-11-22 22:50:46 +01:00
cketti
f0118ecb85
Change authority of the new content provider to unbreak build scripts
2012-11-22 22:50:46 +01:00
Jesse Vincent
e2d347f0a3
Strip Re/Fwd/Aw etc from titles of thread view
2012-11-22 15:24:43 -05:00
Jesse Vincent
eacc5e2ffe
Add titles to thread display
2012-11-22 15:19:27 -05:00
cketti
9452b9e4c6
Make sure MessageView menu is configured correctly
2012-11-21 02:45:37 +01:00
cketti
189452618a
Reset the message view theme when the app theme changes
2012-11-21 02:18:52 +01:00
cketti
349b1e997e
Use type of compose action as action bar title
...
I.e. one of "Compose", "Reply", "Reply all", "Forward"
2012-11-21 01:42:19 +01:00
cketti
08615f205f
Merge branch 'content_provider'
2012-11-18 16:50:31 +01:00
cketti
bb01102403
Use Uri.getQueryParameterNames() workaround on pre-API 11 devices
2012-11-16 18:28:40 +01:00
cketti
411abbea64
Fix display of folder settings and account settings menu entries
2012-11-15 21:45:36 +01:00
cketti
999dd33169
Prevent NPEs in methods called by the handler after activity detached
2012-11-15 21:42:10 +01:00
cketti
4eefcb3a31
Fix crash when remote search fails after search screen has been left
...
Also, change error message to be less technical.
2012-11-15 21:28:05 +01:00
cketti
5accadab00
Enable loading more search results from the server
2012-11-15 21:26:46 +01:00
cketti
b108e7a539
Don't fetch already downloaded messages found by a server-side search
2012-11-15 21:05:45 +01:00
cketti
38fe4d1990
Fix "up" navigation when leaving a message list with search results
2012-11-14 15:01:18 +01:00
cketti
9cbbd06352
Restore settings to configure remote search
2012-11-14 02:08:08 +01:00
cketti
ff156ac7c9
Fix remote search
2012-11-14 00:19:10 +01:00
András Veres-Szentkirályi
a86354be7d
Treat mailto-URI parameters case-insensitive
...
RFC 6068 defines these parameters case-insensitive, yet we only
supported lower-case values because the method Uri.getQueryParameters()
treats parameter names case-sensitive.
This patch introduces a wrapper class that implements case-insensitive
parameter name matching.
Note: commit message edited by cketti
2012-11-13 13:33:22 +01:00
cketti
9814833008
Merge branch 'master' into content_provider
2012-11-08 20:32:12 +01:00
cketti
246ed6990c
Avoid endless loop via Handler
2012-11-08 18:20:52 +01:00
Jesse Vincent
9be4efe58f
Get the Folder list to use the new common icons
2012-11-06 16:18:00 -05:00
Jesse Vincent
446cda8618
Clean up the icons in account list
2012-11-06 16:02:08 -05:00
cketti
d209c0cce3
Merge branch 'master' into content_provider
...
Conflicts:
src/com/fsck/k9/activity/MessageList.java
src/com/fsck/k9/fragment/MessageListFragment.java
2012-11-05 04:52:45 +01:00
cketti
52bfea65d1
Make the message selection code use the unique (Cursor) ID
2012-11-05 02:11:02 +01:00
cketti
f02d265f60
Removed unused column from projection
2012-11-05 01:06:10 +01:00
Koji Arai
c0cb734288
Should change Bcc address when Identity changed.
2012-11-05 00:02:57 +09:00
cketti
d530b20e2b
Copy/move all messages in a thread when copying/moving placeholder
2012-11-03 08:30:32 +01:00
cketti
dfbfaf48dd
Clean up method copyOrMove()
2012-11-03 06:27:27 +01:00
cketti
2cfd25fa23
Javadoc cleanup
2012-11-03 06:20:11 +01:00
cketti
c231b732ac
Avoid converting lists to arrays when possible
2012-11-03 05:56:12 +01:00
cketti
46feb8b9d0
Group messages by account when moving to spam/archive folder
2012-11-03 05:24:41 +01:00
cketti
02aeccdedc
Make flag operations work on all messages in a thread
2012-11-03 05:01:25 +01:00
cketti
7a266dcbdf
Retain selected messages when message list is reloaded
2012-11-03 04:26:41 +01:00
cketti
36b572fa5f
Fix deleteThreadsSynchronous()
2012-11-03 04:25:40 +01:00
cketti
fb5e8eea84
Fix computeBatchDirection()
2012-11-03 03:21:30 +01:00
cketti
e339dd1f10
Delete all messages in a thread when 'delete' is used on the placeholder
2012-11-03 01:52:45 +01:00
cketti
966794f169
Don't create (throw-away) Message objects when starting action mode
2012-11-02 09:30:23 +01:00
cketti
c686284a77
Remove unused method
2012-11-02 05:18:45 +01:00
cketti
db3ea36978
Include number of messages in a thread in number of selected messages
...
Selecting a placeholder message will select all messages in its thread.
2012-11-02 05:18:24 +01:00
cketti
2e1d25118a
Fix JOIN-condition when searching for messages
2012-11-01 20:33:13 +01:00
cketti
60bf3e7e29
Rename class members
2012-10-31 01:49:11 +01:00
cketti
08b361ed36
Fix search for Unified Inbox
...
We don't want to list the Inbox contents of all accounts but the
contents of folders whose "Unify" setting is true.
2012-10-31 01:45:44 +01:00
cketti
a54666e020
Fix edge case in MergeCursor
2012-10-31 01:06:26 +01:00
cketti
b0ef68dfed
Make search also search the message contents
2012-10-30 19:24:19 +01:00
Joe Steele
f70d835404
Provide menu option to search messages.
...
Recent phones frequently do not have a hardware search key, so
there is no way to initiate a search without a menu option.
Related to issues 3386, 3428, 4523, and 4643.
2012-10-30 12:42:51 -04:00
cketti
0baffd05c8
Hide remote search UI elements
...
Remote search is currently not working
2012-10-30 16:54:21 +01:00
cketti
968d948dd0
Restore show next/previous message functionality in MessageView
...
This is just a temporary fix. In the future we want to get rid of
passing the serialized message list from MessageList to MessageView.
2012-10-30 16:27:09 +01:00
cketti
303c1ee85d
Extract generation of SQL queries for searches to SqlQueryBuilder
2012-10-29 02:27:34 +01:00
cketti
5778d135fb
Add global setting to enable/disable threaded view
2012-10-28 20:10:52 +01:00
cketti
889e2502be
Replace call to method only available with API 9 and higher
2012-10-27 05:09:58 +02:00
cketti
65b3a57340
Clone LocalSearch object before modifying it for unread/starred search
2012-10-27 04:48:37 +02:00
cketti
faa666394c
Do sorting in MergeCursor when merging the query results
...
Disabled "sort by sender" for now because the database can't sort by
contact names from the contacts database. We probably have to
special-case that and do in-memory sorting.
2012-10-27 02:15:30 +02:00
cketti
d74ca8c8ce
Move MessageInfoHolder comparator to MessageProvider
...
The MessageInfoHolder comparators aren't used in MessageListFragment
anymore.
2012-10-26 02:44:40 +02:00
cketti
08fba5468f
Switch MergeCursor from using a List to an array
2012-10-25 23:14:28 +02:00
cketti
49a5a3b7ff
Fix message sorting for message lists of a single account
...
To support sorting of message lists spanning multiple accounts (e.g.
Unified Inbox) we need a MergeCursor that also does sorting.
2012-10-25 21:51:14 +02:00
cketti
a4585657d1
Fix global search
2012-10-24 06:57:14 +02:00
cketti
d703286833
Make LocalStore.searchForMessages() skip empty messages
2012-10-24 06:01:26 +02:00
cketti
613ef6ced2
"Select all" now won't start selection mode when there are no messages
2012-10-24 05:35:45 +02:00
cketti
508e9e8aa6
Don't display threaded message list for filtered views
2012-10-24 05:28:38 +02:00
cketti
c7a2080b34
Only show message list footer when displaying a single folder
2012-10-24 04:34:41 +02:00
cketti
ec76dca57f
Remove unused stuff
2012-10-24 01:37:33 +02:00
cketti
1fcce6fb8a
Add database indices for thread columns in 'messages' table
2012-10-24 01:03:59 +02:00
cketti
3bef05b55d
Removed LocalStore hack introduced in 16d2326
2012-10-24 00:32:29 +02:00
cketti
cba9d8fc88
Fix pull to refresh for normal list vs. "remote search"-able
2012-10-24 00:09:33 +02:00
cketti
1b98ce57e1
Notify observers (e.g. CursorAdapter) when the messages table changed
2012-10-24 00:08:44 +02:00
cketti
95b39c71d2
Add threading support to content provider
2012-10-23 03:01:50 +02:00
cketti
05a2571570
Fix display of named searches (e.g. "Unified Inbox")
2012-10-22 18:10:47 +02:00
cketti
6af48bd262
Restore TCP port value in incoming/outgoing server settings screens
...
Special thanks to zjw for the detailed analysis of this bug:
https://github.com/k9mail/k-9/pull/193
2012-10-21 20:04:53 +02:00
cketti
93ef3a7b0f
Fix message list when no search condition is given (All messages)
2012-10-21 19:18:57 +02:00
cketti
f093b84142
Make (de)serialization work when LocalSearch has no search conditions
2012-10-21 19:17:01 +02:00