Jan Berkel
ca10e4d94a
Use TextUtils.isEmpty
2014-12-11 21:56:26 +00:00
cketti
98b5d63909
Merge branch 'open_attachment_improvements'
...
Conflicts:
src/com/fsck/k9/helper/Utility.java
2014-11-27 21:03:15 +01:00
cketti
56c30095e2
Don't use dummy file path when resolving intents
2014-11-18 23:02:20 +01:00
cketti
d9b6e10cbe
Change the way the best view intent is determined
...
First we try the original MIME type unless it's application/octet-stream.
Then we try the MIME type inferred from the attachment's file extension.
Then we fall back to application/octet-stream.
In all cases we first try the content:// URI, then a file:// URI.
2014-11-18 22:55:51 +01:00
cketti
a725099693
Merge pull request #499 from k9mail/remove_apg_interface
...
Remove APG legacy interface
2014-11-12 21:08:46 +01:00
cketti
87ca0d3d2a
Use TemporaryAttachmentStore when viewing attachments using file:// URI
2014-11-11 02:11:51 +01:00
cketti
34cfd8e5b4
Extract file related helper functions into separate class
2014-11-11 01:04:39 +01:00
cketti
e64ca84f1b
Simplify MediaScannerNotifier
2014-11-10 06:43:26 +01:00
cketti
dfd40659d1
Append file name to content:// URI
...
This allows intent filters with patterns for file extensions to match.
2014-11-10 05:46:38 +01:00
cketti
6a1905b7b7
If we can't find an app to view an attachment try again with a file:// URI
...
Sadly, some apps only support the 'file' scheme in their intent filters. Among
them is Android's own package installer.
2014-11-10 05:37:22 +01:00
cketti
44ecf5d588
Use MIME type used for intent resolution in content provider
2014-11-10 03:12:28 +01:00
cketti
f87ab53b9b
Try original and inferred MIME type to find best viewer for attachment
...
In order for Android to find apps that are capable of opening an attachment for
viewing the ACTION_VIEW Intent needs to contain an appropriate MIME type.
Ideally, we'd use the MIME type specified for the attachment in the message.
But often the supplied MIME type is wrong/useless. So we look at the file
extension to try to come up with a sensible MIME type on our own. We then go
on to ask Android which of the two MIME types leads to more apps claiming to
be able to open our attachment for viewing and use that one.
2014-11-10 03:10:09 +01:00
cketti
11a9eff109
Extract intent creation code to method
2014-11-09 20:46:46 +01:00
cketti
6cb3c991db
No longer pretend there are attachment types we don't care about
2014-10-20 21:26:18 -04:00
cketti
3c4ad91614
Fix method names/visibility
2014-10-20 21:24:18 -04:00
cketti
d3073be89a
Rearrange fields/methods
2014-10-20 21:21:09 -04:00
cketti
83d876f246
Inline method
2014-10-20 21:16:31 -04:00
cketti
f6822c973d
Clean up comments
2014-10-20 21:13:58 -04:00
cketti
1e89314f3e
Remove "m" prefix for field names
2014-10-20 21:09:23 -04:00
cketti
b3bc85ba10
Split 'populateFromPart' into multiple methods
2014-10-20 21:06:31 -04:00
cketti
ca88f59c05
Create named class for loading and displaying attachment thumbnails
2014-10-20 20:46:46 -04:00
cketti
4299eb9771
Rename method and improve documentation
2014-10-20 20:28:38 -04:00
cketti
4a6c52947d
Make all fields of AttachmentView private
2014-10-20 20:14:04 -04:00
cketti
187d760e5f
Extract code to display error/status messages to a separate method
2014-10-20 19:50:41 -04:00
cketti
dfe1771fcb
Fix formatting
2014-10-20 19:39:16 -04:00
cketti
b7a8c9b707
Remove unused code
2014-10-20 19:34:16 -04:00
Art O Cathain
203dcfe2c3
use interfaces, not implementions
2014-10-04 12:00:48 +01:00
Art O Cathain
010d8c9f7e
always use import for UrlEncodingHelper
2014-09-29 18:06:21 +01:00
Art O Cathain
c438bc1222
remove some more catches
2014-09-28 12:09:34 +01:00
Art O Cathain
afb65d5ad7
remove some try-catch cruft
2014-09-28 11:39:32 +01:00
cketti
352fb8fd25
Remove legacy APG interface
2014-09-18 23:20:49 +02:00
cketti
601e2880ac
Merge remote-tracking branch 'upstream/master'
...
Conflicts:
src/com/fsck/k9/mail/transport/SmtpTransport.java
2014-09-12 07:11:32 +02:00
cketti
a6fc06f7f9
Fix code style
2014-09-12 06:35:07 +02:00
cketti
3e4beae631
Remove unused 'check mark' color chip
2014-09-12 06:26:03 +02:00
Christian Frommeyer
91ef5fa816
Extracted LocalFolder and LocalMessage definition from LocalStore
2014-09-11 20:26:40 +02:00
Christian Frommeyer
89ba2c510b
More nested classes extracted from LocalStore.
2014-09-11 20:26:40 +02:00
Christian Frommeyer
038fceabf0
Move LocalStore to new subpackage to prepare decomposition of nested
...
classes.
2014-09-11 20:26:39 +02:00
cketti
759fa77c9a
Merge pull request #474 from k9mail/tls-client-cert-auth
...
Client Certificate Authentication
2014-08-30 01:06:28 +02:00
Joe Steele
9728609c4c
Make the foldable container view INVISIBLE, not GONE
...
Now when toggling the foldable view, the screen no longer
jumps half a line up or down to recenter itself when
the view is displayed.
2014-08-29 10:47:45 -04:00
Joe Steele
8ade424270
Save/Restore the FoldableLinearLayout state
2014-08-29 10:47:43 -04:00
Joe Steele
a756fa3683
Use Theme consistent styles in FoldableLinearLayout
...
For support of the dark and light themes.
Also:
Redefine mFolded and call it mIsFolded. Previously,
the view started with mFolded = false (which implies to me
the initial state is unfolded) and yet the view
started in a folded state, which seemed contradictory.
Create updateFoldedState() with code from onClick() (In
preparation for subsequent commit.)
2014-08-29 10:47:41 -04:00
Joe Steele
c80634d501
Format log messages with spaces
2014-08-29 09:06:25 -04:00
Dominik Schürmann
05d8fb5e42
Hide client cert option under advanced options dropdown
2014-08-27 11:48:49 +02:00
Dominik Schürmann
2a1733564e
Add FoldableLinearLayout for advanced options
2014-08-27 11:30:53 +02:00
Joe Steele
e4d26b8c75
Remove code for unsupported API levels
...
An assortment of miscellaneous changes, each usually limited in scope to a
single file.
2014-08-19 17:17:55 -04:00
Joe Steele
028f6f9055
Remove AccessibleWebView
...
Only used on pre-ICS devices
2014-08-19 17:17:48 -04:00
Joe Steele
0fba273357
Remove the obsolete "Condensed layout" preference
2014-08-19 17:17:45 -04:00
Joe Steele
1783dd1a63
Merge branch 'master' into tls-client-cert-auth
...
Conflicts:
res/layout/account_setup_basics.xml
res/values/strings.xml
src/com/fsck/k9/activity/setup/AccountSetupBasics.java
2014-08-19 16:19:02 -04:00
Joe Steele
231f3645f9
Trigger certificate chooser on authentication change
...
If the user chooses client certificate authentication,
immediately pop up the certificate chooser.
If the user chooses password authentication, move the focus to the
password View.
2014-08-11 11:07:46 -04:00
Joe Steele
acab554ee5
Save/Restore activity state
...
This assures that changes made to the port setting and to the chosen
client certificate are saved and restored.
2014-08-11 11:07:34 -04:00