Art O Cathain
552e552e88
Add unit tests for FileHelper.sanitizeFilename()
2014-11-18 23:50:14 +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
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
c3f1420ef6
Don't open the file after the media scanner added it to the media content provider
2014-11-10 06:43:00 +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
0ced8746af
Remove old/unused code from click handler
2014-10-20 20:05:21 -04:00
cketti
33d12e4169
Fix russian translation of 'message_view_no_viewer'
2014-10-20 19:52:42 -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
cketti
4aad31e05a
Bump version to 5.101
2014-10-10 13:42:52 -04:00
cketti
d2bfcab939
Update changelog for 5.101
2014-10-10 13:39:30 -04:00
cketti
c3c8221d4a
Set minSdkVersion + targetSdkVersion via build.gradle
...
Without this building with Gradle adds a 'maxSdkVersion' attribute to the manifest. This seems to cause the targetSdkVersion value being ignored. And with a targetSdkVersion value lower than 16 the permissions READ_CONTACTS/WRITE_CONTACTS imply READ_CALL_LOG/WRITE_CALL_LOG. But we don't need/want those permissions.
2014-10-10 13:15:48 -04:00
cketti
0f844fd4d2
Bump version to 5.100
2014-10-07 21:50:15 -04:00
cketti
270160e65a
Support reading signing config values from Gradle properties
2014-10-07 21:40:42 -04:00
cketti
87acbb7cac
Update changelog for 5.100
2014-10-07 21:30:55 -04:00
cketti
06d1a2471a
Change text in feature graphic
2014-10-07 21:27:45 -04:00
Joe Steele
a141457886
Revert "Implement SSL file-based session caching"
...
This reverts commit 43c38a047f
.
2014-10-07 21:23:04 -04:00
zjw
f8ffead008
Merge pull request #498 from k9mail/manifest_fixes
...
Manifest fixes
2014-09-19 10:40:10 -04:00
cketti
4105cdd3cb
Change/fix indentation of Gradle files
2014-09-18 15:18:41 +02:00
cketti
082dd953b2
Remove now unused AccessibleEmailContentActivity
2014-09-18 15:06:00 +02:00
cketti
9d93735d27
Don't "export" BootReceiver's scheduleIntent action
2014-09-18 02:27:11 +02:00
cketti
64cd587b5e
Don't export CoreReceiver
2014-09-18 02:25:34 +02:00
cketti
3612d182a1
Tidy up AndroidManifest.xml
...
Formatting only; no functional changes
2014-09-18 00:43:01 +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
cketti
b31660c63e
Remove unused strings
2014-09-12 05:54:38 +02:00
cketti
471f1df160
Use checkstyle to monitor code quality
2014-09-12 03:30:34 +02:00
cketti
98559900c2
Add support for disabling pre-dexing
2014-09-12 03:30:13 +02:00
cketti
87a9126107
Update HoloColorPicker to use build tools 20.0.0
2014-09-12 03:30:07 +02:00
cketti
a2a9e751e4
Use android-sdk-manager to fetch Android SDK dependencies
2014-09-12 03:28:46 +02:00
cketti
939b2e3520
Add Play Store feature graphic assets
2014-09-10 21:49:44 +02:00
cketti
5ddfe4b58e
Bumped manifest to 4.905
2014-09-10 21:12:12 +02:00