1
0
mirror of https://github.com/moparisthebest/k-9 synced 2024-11-17 23:15:10 -05:00
Commit Graph

35 Commits

Author SHA1 Message Date
cketti
7e040ea84c Fix SpUsage lint warnings 2014-04-07 20:09:22 +02:00
cketti
114d72da3c Remove deprecated resource attributes 2014-04-07 19:31:10 +02:00
Joe Steele
bfb0316583 Fix fatal IndexOutOfBoundsException
The problem:

Configure the account (just an example -- problems can occur in other
configurations as well):
Message Format: HTML
Reply quoting style: Prefix
Quote message when replying: yes
Reply after quoted text: yes

Reply to a message that has a large quantity (20+) of \r\n scattered in
the body of its HTML version (not an unusual scenario).

Add a reply.  Save the message as a draft.  Go back & open the draft
again.  A fatal IndexOutOfBoundsException occurs.

The cause:

When the draft was saved, the X-K9mail-Identity header was computed and
added to the message, then the text of the message was processed with
MimeUtility.fixDraftTextBody, replacing all occurrences of \r\n with \n in
the quoted message before being saved in LocalStore, thus invalidating the
X-K9mail-Identity header.

The fix:

Remove MimeUtility.fixDraftTextBody and implement
MessageCompose$EolConvertingEditText instead.  Any message text placed in
an EolConvertingEditText widget is assured to have \n line endings.  Any
message text extracted from an EolConvertingEditText widget is assured to
have \r\n line endings.  The X-K9mail-Identity header will always be
computed correctly.

Issues thought to be related:  4782, 5010, 5634, 5725

As noted in some of the referenced issues, errors didn't always result in
a fatal exception, but instead with mixed up text.

Ref:  commit f9a35aeaee
2013-10-11 11:39:15 -04:00
cketti
3d884a8f1c Remove explicit left-alignment so EditText works with RTL languages 2013-04-13 23:03:18 +02:00
cketti
e118917090 Use theme-specific image for 'add contact' button 2013-03-08 18:00:41 +01:00
cketti
cf988cad7e Use new holo-themed icons when possible 2013-02-10 01:16:46 +01:00
cketti
9d66a5e3ba Remove (now redundant) background from layouts to reduce overdraw 2012-12-13 07:28:35 +01:00
cketti
0f7ad3a20d Get rid of the color gradients in the background (dark holo theme) 2012-10-02 19:46:41 +02:00
cketti
4612ceb3c8 Enabled dark theme for MessageCompose and MessageView 2012-04-03 07:55:51 +02:00
cketti
43cb78d2de Fixed display issue in MessageCompose 2012-03-26 07:29:10 +02:00
cketti
f32dce53ae Fixed a small display issue in MessageCompose 2012-03-24 22:56:51 +01:00
cketti
661ed08061 Removed unnecessary layout containers 2012-03-24 22:51:33 +01:00
Jesse Vincent
580f1639c3 UI improvements to the "select identity" button 2012-03-24 19:57:31 +01:00
cketti
8436e6b50b Tweaked MessageCompose layout 2012-03-22 23:37:03 +01:00
cketti
52d333c8d9 Fixed indentation 2012-03-22 22:17:10 +01:00
cketti
f4274eec6e Converted tabs to spaces 2012-03-22 22:17:10 +01:00
cketti
8180fd9ad2 Added a button to switch the identity in MessageCompose
Originally I wanted to use a Spinner, but it doesn't support multiple
view types (see [1]). Those are necessary because we use different
layouts for accounts (section headers) and identities (selectable list
items).
Removed the ChooseAccount activity because it's now unused.
2012-03-22 22:17:10 +01:00
Koji Arai
33a92b11a2 Use the Button instead of the ImageButton. 2011-05-22 04:12:41 +09:00
Koji Arai
5d6df85aac possible to toggle to display the quoted message to send. 2011-05-22 03:55:50 +09:00
kris kechagia
723b20a7f6 removed empty, non-localized strings 2011-05-05 21:24:11 +02:00
Jesse Vincent
81644d0f4b Initial support for a button to look up contacts in a contact provider 2011-03-22 18:07:47 +11:00
Andrew Chen
cc9d6ac5ea Add button to allow editing of quoted message in HTML mode by dropping user back to text mode. Fixes issue 2959. 2011-02-05 15:14:02 -08:00
Andrew Chen
e56b044bbc Add support for HTML composition with text alternative.
Revamp K9 Identity string.
Quote names in Address only when needed.
Remove quoted text bar and move button to quoted text area.
2011-01-12 23:48:28 +00:00
cketti
5cb1c16003 Small layout change for sign/encrypt button in message compose activity. Shifts the encrypt checkbox to the right to make room for longer key descriptions/email addresses. 2010-08-05 12:08:13 +00:00
cketti
bd563291c1 Set text color for text on sign and encrypt checkboxes in the message compose layout so it will also work in dark theme.
Fixes issue 2100
2010-08-05 12:02:47 +00:00
Jesse Vincent
7a4d12b53b Merge from apg-integration 2010-07-27 12:10:09 +00:00
cketti
7cb0797afc Prettified message_compose.xml 2010-05-01 22:42:32 +00:00
cketti
98d711c668 Set background color of message compose view to white (so it won't look strange with the dark theme). 2010-05-01 22:09:20 +00:00
Jesse Vincent
47d0e42d15 All our layouts now use dip instead of px, for great weird-resolution weird-screen-size justice 2009-11-13 00:38:26 +00:00
Daniel Applebaum
94c9454c75 Fixes Issue 538 2009-10-29 02:26:40 +00:00
Bao-Long Nguyen-Trong
edc4281253 Updated message compose screen to display more appropriate input types. Ex: email friendly soft keyboard when focus is on the TO field. 2009-09-10 21:51:26 +00:00
Daniel Applebaum
10b9b0a05b Issue 117
Issue 30

Provide support for multiple identities.  Identities can be managed in
the Account Settings.  While composing a message, an identity can be
chosen for sending.  Identity information and signature edits are
saved in a header field, so that they survive being synced to the
server and back.

Provide support for editing the quoted text, either for replies or
forwards.  The quoted text is immediately editable, in a separate
editor from the main body.  When saved in a draft, the two are
contatenated, but the length of the main body is saved with the
identity information, and is used to split the two parts again, when
opening the draft.
2009-06-09 03:11:35 +00:00
Jesse Vincent
64eda5106c Switch to a light visual theme more in keeping with every other mail client on the planet.
Start to improve padding/spacing/layout
2009-04-19 09:10:32 +00:00
Brock Tice
5e5d148bb7 Removed on-screen buttons in message compose view. 2008-10-30 17:38:26 +00:00
Jesse Vincent
ffd7766384 Initial commit - This source code should be EXACTLY what the current version of the 'Email' application in the android repo looks like as of this date. 2008-10-28 01:04:44 +00:00