Danny Baumann
499e20ef76
Make next/prev buttons track their state again.
2013-02-05 16:11:56 +01:00
Danny Baumann
7b48df7dce
Simplify message list item layout.
2013-02-05 11:16:00 +01:00
m0viefreak
a74d57cb71
MessageView: Theme fix when global and message view theme differ
...
- Since the split-view change, MessageView is only a fragment, so we
can't call setTheme() anymore so easily.
Instead, use a ContextThemeWrapper and use that to inflate the
layout. This way the message header and attachment view
are styled correctly.
- The HTC WebView fix in SingleMessageView was returning the wrong
background color, when message view theme and global theme differ,
because it always used the global theme to retrieve it.
Fix: Specifically put the light/dark values in the themes.xml,
and get them using getContext().getTheme().resolveAttribute().
getContext() will use the ContextThemeWrapper from above, so
even if the global and message view themes differ, it aleays
returns the correct one.
The getThemeBackgroundColor() method added to the K9ActivityMagic
interface in 309eeb72ac
is now not
needed anymore, and was removed.
2013-02-04 19:30:40 +01:00
cketti
a5c00a42d0
Add missing Override annotations
2013-02-03 17:23:39 +01:00
cketti
869a769e23
Stop using deprecated PullToRefresh methods
2013-02-03 17:22:34 +01:00
cketti
d5a417d936
Fix some warnings
2013-02-03 17:08:48 +01:00
cketti
e2ce85706d
Fix NullPointerException
2013-02-03 17:00:56 +01:00
cketti
cce969a6b6
Merge branch 'split_view'
...
Conflicts:
res/values-de/strings.xml
src/com/fsck/k9/fragment/MessageListFragment.java
2013-02-02 05:30:30 +01:00
cketti
1f5ca9eeaa
Don't use MessageViewFragment before it's initialized
...
The previous code worked fine on Android 4.2. But the lifecycle on older
Android versions (tested with 2.2) seems to be slightly different. This
should fix the problem.
2013-02-02 02:35:48 +01:00
cketti
6b143d845a
Set MessageList title in action bar depending on display mode
2013-02-01 02:50:00 +01:00
cketti
1ab04587a9
Restore list state when recreating MessageListFragment
2013-01-30 22:30:19 +01:00
cketti
5b8fe64917
Refactor code to restore the list state
2013-01-30 21:56:16 +01:00
cketti
e9f57dd9c6
Merge branch 'remember-message-list-state' of git://github.com/maniac103/k-9
2013-01-30 20:30:46 +01:00
cketti
77da312354
Fix the span range for the text in front of the message preview
2013-01-30 19:31:06 +01:00
Danny Baumann
55e5d8680e
Remember last list view state when going back to a previous message list
...
fragment.
Fixes issue 4854.
2013-01-30 16:53:21 +01:00
cketti
957042a0d0
Make sure swipe gestures only work on the message list
2013-01-29 03:30:45 +01:00
cketti
ad2a6d7a9b
Add message view menu items to MessageList
2013-01-29 01:19:53 +01:00
cketti
77b8e62d64
Add hotkeys from MessageView to MessageList
2013-01-28 16:15:03 +01:00
m0viefreak
dae3b776ff
MessageList: add setting to allow 0 preview lines
2013-01-28 04:45:03 +01:00
cketti
573058bffc
Add marker in message list for currently opened message
2013-01-24 15:36:59 +01:00
Jesse Vincent
841e565a49
Merge remote-tracking branch 'zjw/progress_indicators'
...
* zjw/progress_indicators:
Provide a progress indicator while loading remote search results.
Remove the progress bar from the message list footer.
Provide progress indicator for searches.
Conflicts:
src/com/fsck/k9/activity/MessageList.java
2013-01-15 15:06:23 -05:00
Joe Steele
f3084dbb66
Provide a progress indicator while loading remote search results.
2013-01-12 18:02:09 -05:00
cketti
705ba76509
Close thread view when last message has been moved/deleted
2013-01-12 22:52:09 +01:00
cketti
7a1e52de48
Fix copy/move when not in 'single folder mode'
2013-01-12 06:17:31 +01:00
cketti
421558c148
Optimize setting flags for whole threads
2013-01-12 02:28:12 +01:00
cketti
1df88ea153
Use separate table to store the thread structure
2013-01-11 03:40:35 +01:00
Joe Steele
218823d7b2
Remove the progress bar from the message list footer.
...
More often than not, it's scrolled out of view.
Other progress indicators have been implemented that
are always in view.
2013-01-10 16:50:21 -05:00
Joe Steele
689f69ca49
Provide progress indicator for searches.
...
Searches can be slow, so users need an indicator. The indicator is
also used when opening a message list or when refreshing it, or when
loading more messages.
This also removes some unused code.
2013-01-10 16:50:20 -05:00
cketti
3f84bb54f2
Fix crash when deleting all messages in a thread
...
Fixes issue 4772
2012-12-18 21:12:40 +01:00
cketti
bc2f099c3c
Fix pull-to-refresh
...
- disable pull-to-refresh while showing the "Loading..." view
- move initialization code from onResume() to initializePullToRefresh()
and call it from onCreateView()
2012-12-10 23:21:00 +01:00
cketti
edd2a44201
Don't display negative unread count in message list
2012-12-10 20:06:18 +01:00
cketti
cc3580c675
Remember across activity restarts whether remote search was performed
2012-12-08 17:29:05 +01:00
cketti
e5d8e1965e
Restore call to remoteSearchFinished() when stopping MessageListFragment
2012-12-08 17:28:46 +01:00
cketti
19a1549d52
Remove unused code
2012-12-08 17:11:17 +01:00
cketti
36a17eae91
Retain selected messages when restarting MessageListFragment
2012-12-08 17:06:15 +01:00
cketti
99ae73ebb9
Remove the setting to hide the refile buttons
...
With the introduction of the action bar there is no longer a separate
button bar for refile actions. So it's no longer necessary to hide the
buttons to save screen space.
2012-12-08 11:51:10 +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
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
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
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
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
ff156ac7c9
Fix remote search
2012-11-14 00:19:10 +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
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
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
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
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
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
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
613ef6ced2
"Select all" now won't start selection mode when there are no messages
2012-10-24 05:35:45 +02:00
cketti
c7a2080b34
Only show message list footer when displaying a single folder
2012-10-24 04:34:41 +02:00
cketti
cba9d8fc88
Fix pull to refresh for normal list vs. "remote search"-able
2012-10-24 00:09:33 +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
93ef3a7b0f
Fix message list when no search condition is given (All messages)
2012-10-21 19:18:57 +02:00
cketti
1d655f5bc2
Added ability to display special folders combining multiple accounts
2012-10-18 05:15:40 +02:00
cketti
83d5102f3d
Merge branch 'new_search_framework' into content_provider
...
Conflicts:
src/com/fsck/k9/fragment/MessageListFragment.java
2012-10-16 20:57:47 +02:00
cketti
cc74a2ad2e
Switched to ContentProvider and CursorLoader to display the message list
2012-10-16 15:46:40 +02:00
Sander Bogaert
49197b4f1c
First attempt at making the fragmented messagelist and remote search play nice with the new search framework. Works partially.
2012-10-13 15:07:28 -04:00
cketti
c2bb451712
Don't display thread count in thread view
2012-10-10 04:32:48 +02:00
cketti
3413cbebf5
Worked around NPEs when the activity has been detached
2012-10-10 04:30:19 +02:00
cketti
16d2326033
Nasty hack to retain threads in MessageListFragment when polling
2012-10-10 03:02:36 +02:00
Jesse Vincent
e9ae328164
Bring back the checkboxes option for messagelist
2012-10-09 18:22:00 -04:00
cketti
63b6b497a0
Early version of message threading
...
Missing:
- UI support for threading when polling
- code to upgrade existing installations
- UI elements to switch from/to threaded display mode
- threading of messages with same subject
2012-10-08 22:51:29 +02:00
cketti
93b13362b4
Converted message list to a fragment
2012-10-06 03:41:32 +02:00
cketti
12e9dce1d8
Renamed MessageList to MessageListFragment
2012-10-05 18:14:07 +02:00
cketti
bbcc4988ba
Converted message view to a fragment
...
The fragment should be fully functional. The only thing missing is the
animation when showing the next/previous message.
2012-10-05 18:14:07 +02:00
cketti
c6bea2e6ab
Copied ...activity.MessageView to fragment.MessageViewFragment
...
This commit breaks all sorts of things but should retain the Git
history of MessageView.
2012-10-05 18:14:06 +02:00