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

4556 Commits

Author SHA1 Message Date
cketti
677d6c923d Don't stop the activity before attachments have been fetched
Display a progress dialog when the user tries to send the message or
save a draft and the attachments haven't been fetched completely.
2013-09-25 03:46:11 +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
zjw
8d0f697e36 Merge pull request #359 from alenzen/master
It's APG, not AGP.
2013-08-15 07:21:53 -07:00
zjw
57ad9977bc Merge pull request #354 from zjw/publish_changelog
Automated change log publication
2013-08-15 07:12:34 -07:00
Alessandro Lenzen
fe08279b95 It's APG, not AGP. 2013-08-15 14:08:37 +02:00
Joe Steele
b7c67019af SMTP dot stuffing should be done *after* line wrapping. 2013-08-13 19:27:40 -04:00
Joe Steele
564195bad9 Close stream when done (StrictMode error) 2013-08-09 19:17:07 -04:00
cketti
d8030eaa7c Make sure Account.getDescription() never returns null
Fixes issue 5857
2013-08-10 00:08:18 +02:00
Koji Arai
41e4c494e0 Updated Japanese translation of the changelog (Thanks to KATOH Yasufumi). 2013-08-09 23:30:39 +09:00
Koji Arai
afda4403cb Fixed typo. 2013-08-07 11:04:43 +09:00
Joe Steele
fcabb7395d bug fix: use "1" not "true" for SQL boolean
Ref:  Pull request #355 from @edemaine
2013-08-02 13:01:22 -04:00
Joe Steele
2df436e7bc Close stream when done (StrictMode error). 2013-08-02 12:56:10 -04:00
Joe Steele
fce39f0fce HTML tag cleanup
Effective with earlier commit e2c5229e85,
messages are wrapped with <html> tags at display time, rather than
when messages are saved.

For consistency, this commit removes tags from a status message, because
they, too, will be added back at display time.

Closes pull request 286.
2013-08-01 19:38:48 -04:00
Joe Steele
b795106289 New "-pre-bump-check" target for sanity checks.
Perform all sanity checks before making any changes.
2013-08-01 11:21:52 -04:00
Joe Steele
b8b21a0bcb Make sure the gh-pages branch is pushed. 2013-08-01 11:02:58 -04:00
Joe Steele
6e62081390 More robust parsing of changelog in build.xml 2013-08-01 11:02:57 -04:00
Joe Steele
57c998becc Automate publishing of the changelogs.
Publishes the changelog on github using a gh-pages branch.

This implementation changes back and forth between git
branches without updating the working tree.  This should
be faster because the branches are unrelated so updating
the tree would require removing and recreating all the files.
2013-08-01 11:02:49 -04:00
Koji Arai
3d6a7b6409 Updated Japanese translation of the changelog. 2013-07-31 22:32:16 +09:00
Jesse Vincent
2ba84bceaa Merge pull request #353 from sfuhrm/gmail-style-user-pics
Gmail style user pics, 2nd try

* sfuhrm/gmail-style-user-pics:
  Changed the fallback char from 'K' to '?'. The riddler was here ;).
  Using Android proposed colors as contact color palette now: http://developer.android.com/design/style/color.html
  Fixed NPE found by blackbox87 ... thanks pal!
  Added more finer characters as proposed by cketti
  Caching also the calculated anonymous bitmap as proposed by maniac103. This removes a lot of code for special handling unknown contacts.
  Bugfix for negative modulo result indexing the palette array
  Changed hash based color calc to a hash indexed palette as discussed in the pull request.
  GMail-app-style generated colorful one-letter contact pictures for pictureless contacts

Conflicts:
	src/com/fsck/k9/activity/misc/ContactPictureLoader.java
	src/com/fsck/k9/fragment/MessageListFragment.java
2013-07-30 22:00:19 -04:00
Jesse Vincent
bbad298bf6 Convert OpenMode from an Enum to static ints for perf improvement.
(Based on profiling of long folder list opens)

This should be backported to 4.4
2013-07-30 21:32:35 -04:00
Jesse Vincent
e9a0cbb269 Ask SQLite for a simpler calculation when counting unread messages. The docs imply this is a decent perf win. I'm seeing at least a bit of one 2013-07-30 21:32:35 -04:00
Jesse Vincent
375d62fb7d Add an actionbar item for "add account" to the account list (if there's room)
This should be backported to 4.4
2013-07-30 21:32:35 -04:00
Stephan Fuhrmann
c30af244cf Changed the fallback char from 'K' to '?'. The riddler was here ;). 2013-07-30 21:27:52 +02:00
Stephan Fuhrmann
ea5905861a Using Android proposed colors as contact color palette now: http://developer.android.com/design/style/color.html 2013-07-30 21:27:52 +02:00
Stephan Fuhrmann
393f45bda1 Fixed NPE found by blackbox87 ... thanks pal! 2013-07-30 21:27:52 +02:00
Stephan Fuhrmann
6af02c4c13 Added more finer characters as proposed by cketti 2013-07-30 21:27:52 +02:00
Stephan Fuhrmann
df5766ba3a Caching also the calculated anonymous bitmap as proposed by maniac103. This removes a lot of code for special handling unknown contacts. 2013-07-30 21:27:52 +02:00
Stephan Fuhrmann
d45c8b053b Bugfix for negative modulo result indexing the palette array 2013-07-30 21:27:52 +02:00
Stephan Fuhrmann
64212072c0 Changed hash based color calc to a hash indexed palette as discussed in the pull request. 2013-07-30 21:27:52 +02:00
cketti
dfda81efe2 Merge pull request #352 from p0izon/patch-1
Update Hungarian translation
2013-07-25 16:35:13 -07:00
p0izon
da70d0c5e0 fix some typos, update translation 2013-07-26 00:27:42 +02:00
cketti
55b10948c4 Fix "-set-version" build target that checks if the changelog is up-to-date
Adjust path to the master changelog file.
2013-07-23 20:53:47 +02:00
cketti
a779e0e6f8 Merge branch 'ckChangeLog_update'
Closes pull request #345
2013-07-23 20:44:04 +02:00
cketti
2673b072fa Rename master changelog file 2013-07-23 20:33:44 +02:00
cketti
5069b70710 Update ckChangeLog to v1.0.0 2013-07-23 20:28:16 +02:00
cketti
c8e15dc63f Merge branch 'translations' 2013-07-23 20:17:59 +02:00
cketti
e6d6744f55 Rename string to better convey the meaning
notification_action_read -> notification_action_mark_as_read
2013-07-23 20:12:48 +02:00
cketti
a597d2ef6c Clean up translations 2013-07-23 19:35:39 +02:00
Daniel Malmgren
e992d4d0dc Update Swedish translation
Fixes issue 2172
2013-07-23 19:07:39 +02:00
cketti
b0f9e63019 Merge pull request #346 from sfuhrm/fix-de-strings-xml
Update German translation
2013-07-23 17:56:02 +02:00
cketti
8330a846c7 Merge branch 'update_italian_translation' into translations
Fixes issue 5792
2013-07-23 17:53:31 +02:00
Vincenzo Reale
c47ca191dc Another fix for the Italian translation 2013-07-23 17:42:44 +02:00
Sirtao Esposito
fbf1a80083 Fix Italian translation 2013-07-23 17:41:39 +02:00
Vincenzo Reale
f707872ca4 Update Italian translation 2013-07-23 17:39:45 +02:00
Stephan Fuhrmann
a89a510f4e Tweaked the label a little to match better what the code does 2013-07-22 22:37:50 +02:00
Stephan Fuhrmann
722c732ea8 Added 2 missing German locale strings in strings.xml 2013-07-22 22:24:57 +02:00
Jesse Vincent
917da8cd90 Fix for market-reported NPE:
java.lang.NullPointerException
at com.fsck.k9.controller.MessagingController.actOnMessages(MessagingController.java:5602)
at com.fsck.k9.controller.MessagingController.deleteThreads(MessagingController.java:3986)
at com.fsck.k9.fragment.MessageListFragment.onDelete(MessageListFragment.java:1311)
at com.fsck.k9.fragment.MessageListFragment.onDelete(MessageListFragment.java:1306)
at com.fsck.k9.fragment.MessageListFragment.onContextItemSelected(MessageListFragment.java:1506)
at android.support.v4.app.Fragment.performContextItemSelected(Fragment.java:1583)
at android.support.v4.app.FragmentManagerImpl.dispatchContextItemSelected(FragmentManager.java:1992)
at android.support.v4.app.FragmentActivity.onMenuItemSelected(FragmentActivity.java:370)
at com.actionbarsherlock.app.SherlockFragmentActivity.onMenuItemSelected(SherlockFragmentActivity.java:211)
at com.android.internal.policy.impl.PhoneWindow$DialogMenuCallback.onMenuItemSelected(PhoneWindow.java:4038)
at com.android.internal.view.menu.MenuBuilder.dispatchMenuItemSelected(MenuBuilder.java:735)
at com.android.internal.view.menu.MenuItemImpl.invoke(MenuItemImpl.java:149)
at com.android.internal.view.menu.MenuBuilder.performItemAction(MenuBuilder.java:874)
at com.android.internal.view.menu.MenuDialogHelper.onClick(MenuDialogHelper.java:193)
at com.android.internal.app.AlertController$AlertParams$3.onItemClick(AlertController.java:934)
at android.widget.AdapterView.performItemClick(AdapterView.java:301)
at android.widget.AbsListView.performItemClick(AbsListView.java:1287)
at android.widget.AbsListView$PerformClick.run(AbsListView.java:3078)
at android.widget.AbsListView$1.run(AbsListView.java:4161)
at android.os.Handler.handleCallback(Handler.java:615)
at android.os.Handler.dispatchMessage(Handler.java:92)
at android.os.Looper.loop(Looper.java:137)
at android.app.ActivityThread.main(ActivityThread.java:4921)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:511)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1038)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:805)
at dalvik.system.NativeStart.main(Native Method)
2013-07-21 15:54:46 -04:00
Stephan Fuhrmann
16f6d85ea2 GMail-app-style generated colorful one-letter contact pictures for pictureless contacts 2013-07-21 14:34:45 -04:00
Stephan Fuhrmann
3feaeb6903 GMail-app-style generated colorful one-letter contact pictures for pictureless contacts 2013-07-21 16:58:38 +02: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