1
0
mirror of https://github.com/moparisthebest/k-9 synced 2024-11-16 06:25:06 -05:00
Commit Graph

340 Commits

Author SHA1 Message Date
cketti
2b7f5e7b70 Merge branch 'pick_attachment_fix'
Update LocalStore code to handle the newly introduced temporary files
for attachments

Conflicts:
	res/values/strings.xml
	src/com/fsck/k9/activity/MessageCompose.java
2013-09-25 05:22:00 +02:00
cketti
62aa1b87d0 Fetch attachments while MessageCompose activity is running
Android allows other apps to access protected content of an app without requesting the
necessary permission when the app returns an Intent with FLAG_GRANT_READ_URI_PERMISSION.
This regularly happens as a result of ACTION_GET_CONTENT, i.e. what we use to pick content
to be attached to a message. Accessing that content only works while the receiving activity
is running. Afterwards accessing the content throws a SecurityException because of the
missing permission.
This commit changes K-9 Mail's behavior to copy the content to a temporary file in K-9's
cache directory while the activity is still running.

Fixes issue 4847, 5821

This also fixes bugs related to the fact that K-9 Mail didn't save a copy of attached content
in the message database.

Fixes issue 1187, 3330, 4930
2013-09-25 03:12:34 +02:00
Jesse Vincent
65ed9072bf clean up the folder list item chips 2013-08-22 21:08:51 -04:00
Jesse Vincent
7ba68dbc3c update the new message list item to work better in various odd configurations 2013-08-22 21:08:51 -04:00
Jesse Vincent
cef82a5cc3 move thread count up to the subject line 2013-08-22 20:56:56 -04:00
Jesse Vincent
a8668f962d add back stars to the message list UI 2013-08-22 20:56:55 -04:00
Jesse Vincent
b2cfc40ab6 Fixes for showing the selected checkbox correctly 2013-08-22 20:56:55 -04:00
Jesse Vincent
ee234b65f8 Return to old style chips for accounts, folders and messages.
My circle design stopped being even a little bit useful when we stopped showing
the "complex" versions of the shapes
2013-08-22 20:56:55 -04:00
Jesse Vincent
b0c9ae0d88 Tighten up the account list display for narrow-screened devices like the HTC One 2013-07-21 10:42:31 -04:00
Jesse Vincent
86ec4b32e9 restore super-dense layout when the user has selected 0 lines of message preview 2013-07-20 14:53:39 -04:00
Jesse Vincent
d85315222e make the folders button in the account list more like a button. backcompat for pre-sdk-11 styles 2013-06-30 18:54:02 -04:00
cketti
0cff0c0fed Added explicit width and height for the new message list checkbox
Without this change Android 2.x does weird things.
2013-06-08 20:28:21 +02:00
cketti
20ec9eb325 Make the color chip area slightly smaller 2013-06-07 07:12:23 +02:00
cketti
a485c4c0d1 Add new multi-select checkboxes to message list
Use the checkboxes of AOSP's Email app.
2013-06-07 07:07:27 +02:00
cketti
3d884a8f1c Remove explicit left-alignment so EditText works with RTL languages 2013-04-13 23:03:18 +02:00
cketti
6b6f73dfd3 Change appearance of unread widget
* New icon
* Fix 2x2 bug on Nexus 4
* Add preview image
2013-03-16 01:57:21 +01:00
cketti
e118917090 Use theme-specific image for 'add contact' button 2013-03-08 18:00:41 +01:00
cketti
0c16b8cec8 Change style for button bar in setup (Android 3+)
Use the button bar layout from Roman Nurik's WizardPager example:
https://code.google.com/p/romannurik-code/source/browse/misc/wizardpager
2013-03-08 03:17:22 +01:00
Uni-
94c1477e93 Fix welcome message layout 2013-03-06 01:39:15 +09:00
Uni-
4f5ab86be3 Add settings import on Welcome 2013-03-05 16:31:45 +09:00
cketti
d6d9effbec Remove unused stuff 2013-02-21 02:00:12 +01:00
m0viefreak
08092c5b8a message header layout adjustments
- wrap chip around the whole header, including the subject
  and the expanded additional headers area.

- mindor padding adjustments to make whitepsace around the
  contact badge a bit more homogeneous.
2013-02-15 18:15:39 +01:00
maniac103
897f6e3d1c Merge pull request #254 from maniac103/holo-improvements
Holo improvements
2013-02-14 08:34:32 -08:00
Danny Baumann
099da1913b Improve some layouts. 2013-02-13 11:20:33 +01:00
Danny Baumann
20d229c91b Make the contact badges a little smaller.
Previously, they dominated both the message header as well as the
message list by their sheer size, at least on xhdpi (Nexus 4), although
they're certainly not the most important information in there.
2013-02-13 11:20:25 +01:00
Danny Baumann
473a9d4fa2 Use star icon provided by framework.
Provides us with a holo-styled star for free.
2013-02-13 11:13:47 +01:00
m0viefreak
8d4a82ba0e message view: fix subject bugs
- Android does not support ellipsize in combination with maxlines
  for TextViews. This caused getEllipsisCount() in MessageTitleView
  to always fail, and the full subject was never shown in the regular
  headers area when needed.
  To work around that, check for ourselves whether the text is
  longer than 2, and ellipsize manually.

- Clicking the star button on a message caused the subject line to
  re-appear, even if it fits in the action bar title without being
  cut off. This was caused by MessageHeader.populate(), which always
  set the subject to visible.
  As a workaround: Only set subject to visible in case populate()
  actually shows a new message.

- delete res/layout/actionbar_message_view.xml, its already present
  in the actionbar_custom.xml
2013-02-11 13:47:31 +01:00
Danny Baumann
d6fb018b1c Fix some more layout issues. 2013-02-11 13:03:30 +01:00
Danny Baumann
5b816f0cbd Make space between from, to and cc consistently sized. 2013-02-11 12:22:20 +01:00
Danny Baumann
98737149c1 Fix message header layout issues. 2013-02-11 10:48:49 +01:00
Jesse Vincent
03428f1a31 remove the background color from message view headers 2013-02-10 20:23:26 -05:00
Jesse Vincent
ed90f3be44 MessageView quick contact badges 2013-02-10 19:02:17 -05:00
Jesse Vincent
14b4b28fa0 relayout the message header area 2013-02-10 19:02:17 -05:00
cketti
cf988cad7e Use new holo-themed icons when possible 2013-02-10 01:16:46 +01:00
cketti
171ecc483b Clean up drawable folders 2013-02-09 06:19:03 +01:00
cketti
3a7f1249dc Fix some display issues 2013-02-08 18:04:39 +01:00
cketti
04ce0a9d3f Add contact pictures to message list 2013-02-08 15:37:27 +01:00
Jesse Vincent
7714bc3cfa Move "show all headers" into the menu (and out of the UI) 2013-02-07 15:27:22 -05:00
cketti
9279c6d7c8 Fix multi-select checkboxes 2013-02-06 14:06:22 +01:00
m0viefreak
5fa7e65816 MessageView: another theme fix
- The attachments view still had the wrong background color in case
  of different global and message themes.

- The attachments view used the activity LayoutInflater, but it needs
  to use the one of the fragment.

- The background drawable for the attachments used transparency, and
  thus was completely invisible in the black theme. Fix it by adding
  another one for the black theme.
2013-02-05 23:12:52 +01:00
cketti
f5ec5cd3fb Avoid saved state being discarded when message list is modified 2013-02-05 20:00:31 +01:00
Danny Baumann
7b48df7dce Simplify message list item layout. 2013-02-05 11:16:00 +01:00
Danny Baumann
f51f675021 Simplify and improve message view header layout.
The star was displayed partially off-screen before.
2013-02-05 11:15:55 +01:00
cketti
b02e338b49 Add animation when switching from message list to message view 2013-02-02 02:21:20 +01:00
cketti
9a4b674282 Extract string to strings.xml 2013-02-01 03:34:35 +01:00
cketti
546b9434de Remove unused layouts 2013-02-01 03:24:00 +01:00
cketti
3439a2326d Use theme-specific color for message list divider 2013-02-01 03:18:04 +01:00
cketti
6b143d845a Set MessageList title in action bar depending on display mode 2013-02-01 02:50:00 +01:00
cketti
0a14d584e9 Add 1px divider between message list and message view in split view 2013-01-25 12:19:09 +01:00
cketti
933dd95047 First very basic version of a split screen for message list + view 2013-01-24 13:04:06 +01:00