1
0
mirror of https://github.com/moparisthebest/k-9 synced 2024-12-23 16:18:50 -05:00
Commit Graph

5166 Commits

Author SHA1 Message Date
Joe Steele
c790fa73c1 Don't store the font-family preference with plain text messages.
Dynamically generate the CSS style for <pre> elements
for inclusion in the HTML <head> element when messages
are displayed.

This permits a user to change their font-family preference
for plain text messages and see the results immediately.

Obviously any old locally-stored messages that had their
font-family stored with them will continue to display using
that font-family, irrespective of the user's current
preference setting.
2013-03-01 18:48:46 -05:00
cketti
04e1bf6976 Restore code to remember the last direction messages were displayed in 2013-03-01 22:38:09 +01:00
Joe Steele
c21ea14af1 Fix unit tests. 2013-03-01 14:34:31 -05:00
Joe Steele
548b8e07a6 Refactor code for MessageWebView.setText()
The MIME type for the supplied text was always text/html,
so there is no need to pass that as a parameter.
Furthermore, we are relying on it being text/html because
we are wrapping it with HTML code.

Likewise, change/simplify/rename AccessibleWebView.loadDataWithBaseURL().
2013-03-01 14:32:16 -05:00
Joe Steele
6a844a2553 Remove unused code in HtmlConverter.
HtmlConverter.getHtmlHeader() and getHtmlFooter() are
no longer used.  Remove them and other related code.
2013-03-01 14:30:42 -05:00
Joe Steele
e2c5229e85 Change when <html> tags are applied to messages.
Previously, <html>, <head>, & <body> tags were
attached to messages before they were stored locally.
But now that the <head> element also needs to include
a <meta> element (for proper MessageWebView display),
it seems unecesary to store all these tags with each
message.

Now the tags are no longer stored with the messages.  Instead,
MessageWebView applies the tags before displaying the message.

This also eliminates the need to upgrade an older
message database where all the old messages would have
otherwise needed to be wrapped with the new tags.
2013-03-01 12:59:59 -05:00
Joe Steele
731022339d Improve MessageWebView display.
Now that MessageWebView has 'setUseWideViewPort(true)',
the wide view port is excessively wide.  It turns out
Android is using a fixed width of 980 px, so that even
plain text messages (which are already wrapped to fit
the screen) have a large empty area beside them when
scrolled to the left.

Injecting a meta tag in the html header fixes the
problem.
2013-03-01 12:55:51 -05:00
Uni-
9d589140e1 Modify Korean translations on Classes 2013-02-28 22:16:50 +09:00
Uni-
4612a1e9d3 Update Ko translations (complete list) 2013-02-28 16:56:51 +09:00
Uni-
99c7732bb9 Update Korean translations 2013-02-28 15:05:25 +09:00
cketti
f0af73b086 Merge pull request #274 from aatdark/aatdark_issue4914
spelling correction Danish (issue 4914)
2013-02-27 17:39:58 -08:00
Bernhard Redl
33bf238858 spelling correction Danish (issue 4914) 2013-02-28 01:49:36 +01:00
Joe Steele
28212bc04f Issue 4019 -- Fix inability to zoom out.
Thanks to davidgca...@gmail.com for references in
his comments 80 & 81.
2013-02-27 16:11:08 -05:00
cketti
207e2a1e56 Notification icon update
Android 2.2: use old icon
Android 2.3: new icon, (try to) follow icon guidelines for 2.3
Android 3.0+: new icon, follow guidelines for 3.0+

See http://developer.android.com/guide/practices/ui_guidelines/icon_design_status_bar.html
2013-02-26 20:34:52 +01:00
cketti
4e46b3411c Merge branch 'fixed_account_colors'
Conflicts:
	src/com/fsck/k9/Account.java
2013-02-26 18:40:07 +01:00
cketti
556503318c Rework code for predefinied account colors 2013-02-26 18:29:12 +01:00
dzan
f7bef247f5 Fix setChipColor call. 2013-02-26 09:42:49 +01:00
Jesse Vincent
396b01aac7 Revert "Add a series of predefined account colors and pick those if any remain before generating complete random one."
This reverts commit 6735592204.

Totally not ready yet. Doesn't even build
2013-02-25 22:06:47 -08:00
Jesse Vincent
cda2597d07 Merge pull request #272 from dzan/fixed_account_colors
Fixed Account Colors
2013-02-25 21:58:54 -08:00
dzan
6735592204 Add a series of predefined account colors and pick those if any remain before generating complete random one. 2013-02-25 14:34:53 +01:00
Danny Baumann
878fab08d8 Fix comment leftover. 2013-02-25 12:10:36 +01:00
maniac103
a680470780 Merge pull request #271 from janekx/master
Czech loc update, plurals and corrections
2013-02-25 02:48:27 -08:00
maniac103
c4e81c416f Merge pull request #268 from jkinnunen/UpdatedFinnishTranslation
Finnish translation updated
2013-02-25 02:46:13 -08:00
Jan Urbánek
b6ad4d0ec0 Update res/values-cs/strings.xml 2013-02-23 21:11:09 +01:00
cketti
eed64a37f8 Remove unused batch button settings 2013-02-22 23:40:42 +01:00
Jani Kinnunen
b7adfbe6eb Finnish translation updated 2013-02-22 20:46:34 +02:00
cketti
9c821d25e6 Fix typo 2013-02-21 05:51:20 +01:00
cketti
906163b538 Use correct string for notification title 2013-02-21 05:42:04 +01:00
cketti
1b442f5be8 Add placeholders for missing strings / remove unused strings 2013-02-21 05:36:55 +01:00
cketti
d6d9effbec Remove unused stuff 2013-02-21 02:00:12 +01:00
cketti
92c21ece6d Fix showing unread count in pre-Honeycomb notifications
Fixes issue 4904
2013-02-20 23:55:46 +01:00
Jesse Vincent
140cd2f1fc Bumped manifest to 4.328 2013-02-20 00:57:59 -05:00
cketti
880f6c5e23 Update res/raw/changelog.xml 2013-02-20 06:56:28 +01:00
cketti
2c8fdb543b Merge pull request #267 from rk4an/patch-1
Changelog is empty when starting 4.327
2013-02-19 21:52:38 -08:00
Erkan
70a08c5f49 Update res/raw/changelog.xml 2013-02-20 06:50:21 +01:00
Jesse Vincent
93da64defd Bumped manifest to 4.327 2013-02-19 23:27:47 -05:00
Jesse Vincent
67949b8cd8 3.237 changelog 2013-02-19 23:27:36 -05:00
cketti
fdfaf03b7a Fix dialog message when deleting multiple messages from a notification 2013-02-19 05:38:48 +01:00
cketti
3379fdb573 Merge pull request #266 from m0vie/npe-fix
message view / list: fix NPE when list is empty
2013-02-18 20:33:25 -08:00
cketti
1a034d3e59 Merge pull request #265 from jca02266/master
If there is no message, it should return to a MessageList.
2013-02-18 20:32:16 -08:00
cketti
50fcff76fd Add a caching layer to EmailProvider
Database updates can be surprisingly slow. This lead to slow updates of
the user interface which in turn made working with K-9 Mail not as fun
as it should be. This commit hopefully changes that.
2013-02-19 04:45:14 +01:00
m0viefreak
dd5d8561cd message view / list: fix NPE when list is empty
This happened for example in a starred-message-only view when
un-starting the last message. This led to isFirst() and isLast()
causing a NullPointerException when trying to update the
previous / next buttons.
2013-02-18 19:02:22 +01:00
Koji Arai
7da4c7cc1b Avoid IndexOutOfRangeException.
If there is no next message, it should return to a MessageList.
2013-02-19 02:06:36 +09:00
Koji Arai
9287d97626 Updated Japanese translation. catch up with 49d1bdb. 2013-02-18 23:38:03 +09:00
cketti
44da998f0c Fix NullPointerException 2013-02-18 05:05:01 +01:00
cketti
27f1fedb1f Fix the remaining bugs in the XML of the Czech translation 2013-02-17 19:09:48 +01:00
Jesse Vincent
d33f3e30c2 Fix a bunch of XML bugs in Czech translation 2013-02-17 12:46:52 -05:00
Jesse Vincent
94d19648a2 Merge pull request #259 from rk4an/master
Update French translation
2013-02-16 17:37:36 -08:00
Jesse Vincent
f536021d58 Merge pull request #261 from janekx/master
Czech loc for 4.326
2013-02-16 17:36:29 -08:00
janekx
23de9ddeb0 Update res/values-cs/strings.xml 2013-02-16 16:00:48 +01:00