Commit Graph

5010 Commits

Author SHA1 Message Date
Joe Steele 58efee8be2 Avoid StrictMode error in OpenPgpApi
E/StrictMode(9278): A resource was acquired at attached stack trace but never released. See java.io.Closeable for information on avoiding resource leaks.
E/StrictMode(9278): java.lang.Throwable: Explicit termination method 'close' not called
E/StrictMode(9278): 	at dalvik.system.CloseGuard.open(CloseGuard.java:184)
E/StrictMode(9278): 	at android.os.ParcelFileDescriptor.<init>(ParcelFileDescriptor.java:179)
E/StrictMode(9278): 	at android.os.ParcelFileDescriptor.<init>(ParcelFileDescriptor.java:168)
E/StrictMode(9278): 	at android.os.ParcelFileDescriptor.createPipe(ParcelFileDescriptor.java:362)
E/StrictMode(9278): 	at org.openintents.openpgp.util.ParcelFileDescriptorUtil.pipeFrom(ParcelFileDescriptorUtil.java:34)
E/StrictMode(9278): 	at org.openintents.openpgp.util.OpenPgpApi.executeApi(OpenPgpApi.java:222)
E/StrictMode(9278): 	at org.openintents.openpgp.util.OpenPgpApi$OpenPgpAsyncTask.doInBackground(OpenPgpApi.java:189)
E/StrictMode(9278): 	at org.openintents.openpgp.util.OpenPgpApi$OpenPgpAsyncTask.doInBackground(OpenPgpApi.java:1)
E/StrictMode(9278): 	at android.os.AsyncTask$2.call(AsyncTask.java:288)
E/StrictMode(9278): 	at java.util.concurrent.FutureTask.run(FutureTask.java:237)
E/StrictMode(9278): 	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1112)
E/StrictMode(9278): 	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:587)
E/StrictMode(9278): 	at java.lang.Thread.run(Thread.java:841)
2014-05-03 11:43:45 -04:00
Joe Steele 5cc4d7c6a9 Avoid NPE in MessageOpenPgpView.updateLayout()
E/AndroidRuntime(24914): FATAL EXCEPTION: main
E/AndroidRuntime(24914): Process: com.fsck.k9, PID: 24914
E/AndroidRuntime(24914): java.lang.NullPointerException
E/AndroidRuntime(24914):    at org.openintents.openpgp.util.OpenPgpServiceConnection.<init>(OpenPgpServiceConnection.java:35)
E/AndroidRuntime(24914):    at com.fsck.k9.view.MessageOpenPgpView.updateLayout(MessageOpenPgpView.java:115)
E/AndroidRuntime(24914):    at com.fsck.k9.view.SingleMessageView.setMessage(SingleMessageView.java:623)
E/AndroidRuntime(24914):    at com.fsck.k9.fragment.MessageViewFragment$Listener$2.run(MessageViewFragment.java:602)
E/AndroidRuntime(24914):    at android.os.Handler.handleCallback(Handler.java:733)
E/AndroidRuntime(24914):    at android.os.Handler.dispatchMessage(Handler.java:95)
E/AndroidRuntime(24914):    at android.os.Looper.loop(Looper.java:136)
E/AndroidRuntime(24914):    at android.app.ActivityThread.main(ActivityThread.java:5081)
E/AndroidRuntime(24914):    at java.lang.reflect.Method.invokeNative(Native Method)
E/AndroidRuntime(24914):    at java.lang.reflect.Method.invoke(Method.java:515)
E/AndroidRuntime(24914):    at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:791)
E/AndroidRuntime(24914):    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:607)
E/AndroidRuntime(24914):    at dalvik.system.NativeStart.main(Native Method)
2014-05-03 11:43:05 -04:00
Joe Steele f17b45c152 Provide Eclipse .project file for new plugin
This gives the openpgp-api-library an Eclipse
project name consistent with the names used for
the other plugins.  This helps with initial
project setup and avoids project naming collisions.
2014-05-03 10:38:06 -04:00
Joe Steele e0ce5fc4ce Eliminate superclass callbacks
Service components don't need to call
super.onCreate() and super.onDestroy()
2014-05-03 10:36:36 -04:00
Koji Arai 9c5b9cce90 Adapt to the astyle version 2.04.
* max-instatement-indent:
The valid value is 40 thru 120.

* brackets=attach:
We should change the brackets options to the style option in v2.02 or later.

For more detail, see the http://astyle.sourceforge.net/news.html.
2014-05-02 14:31:13 +09:00
Koji Arai 59ae1d034c Add build.gradle for tests-on-jvm 2014-04-29 15:35:29 +09:00
Koji Arai 615a1ae9a7 Remove duplicate code. use Utility.hasConnectivity() 2014-04-28 15:36:07 +09:00
cketti 51aa34d52b Don't use enum ordinal as array index
This fixes a crash when setting up WebDAV accounts.
2014-04-27 03:29:06 +02:00
cketti da74253f7b Bumped manifest to 4.904 2014-04-18 16:55:41 +02:00
cketti 818aed5f8c Update changelog for 4.904 2014-04-18 16:53:40 +02:00
cketti e1d9c60b83 Merge pull request #467 from grote/master
Add information for MyKolab.com and its variants to providers
2014-04-15 01:42:34 +02:00
Torsten Grote 79ae191c2e add information for MyKolab.com and its variants to providers 2014-04-14 16:03:36 +02:00
cketti 8e078bc014 Merge pull request #466 from thi/fix-apg-legacy-encryption
Fix APG legacy encryption
2014-04-09 20:28:19 +02:00
Thialfihar b765988423 Fix APG legacy encryption 2014-04-09 19:45:37 +02:00
cketti 5640dece0f Merge pull request #462 from open-keychain/openpgp
OpenPGP: Hide lookup key button explicitly if not needed
2014-04-08 22:18:18 +02:00
cketti 3054ff757b Update translations to use ellipsis character 2014-04-08 21:29:40 +02:00
cketti d6a9b4e4d4 Remove obsolete layout attributes
Fixes more Lint warnings
2014-04-08 21:27:11 +02:00
cketti c597d63ae6 Fix more Lint warnings 2014-04-08 21:03:33 +02:00
cketti 6924d68376 Merge branch 'translations_from_transifex'
This has the potential to break stuff. Please report all translation-related
oddities.
2014-04-08 18:07:14 +02:00
cketti 6267f1249b Add script to fix up the files we pull from Transifex 2014-04-08 18:05:04 +02:00
cketti 420e6a91be Remove scripts to modify translations for Gradle support 2014-04-08 18:02:47 +02:00
cketti 1b14472a59 Remove scripts to sync translations
Now that we're using Transifex  for translations we no longer need
those scripts.
2014-04-08 18:00:02 +02:00
cketti a7e157eac7 Remove Canadian French translation
It looks like this translation hasn't been maintained for quite some
time.
2014-04-08 17:46:45 +02:00
cketti d5c6d96112 Fetch translations from Transifex
Include new Basque (eu) translation
2014-04-08 17:36:20 +02:00
cketti c4d930f326 Remove newlines that mess up Transifex 2014-04-08 05:13:39 +02:00
cketti 24cdf811e6 Prepare to integrate Transifex translations
Change the translated strings files to a format similar to what
Transifex exports. This should make it easier to see the content changes
when translations are pulled from Transifex for the first time.
2014-04-08 04:35:21 +02:00
cketti eaa12d2bd4 Sync translations (and remove place holders) 2014-04-08 04:35:21 +02:00
cketti 13bc441c7b Remove and rearrange comments to better work with Transifex 2014-04-08 04:35:05 +02:00
cketti 95cc319101 Merge branch 'fix_lint_warnings'
Fix some lint warnings
2014-04-07 20:41:20 +02:00
cketti 510195bce7 Explicitly use the default locale 2014-04-07 20:35:16 +02:00
cketti efc5565b91 Extract hardcoded string from layout 2014-04-07 20:24:01 +02:00
cketti ebed217c13 Add missing inputType attribute 2014-04-07 20:19:51 +02:00
cketti 5c59b25367 Fix (bad) manual boxing
Fixes UseValueOf lint warning
2014-04-07 20:12:46 +02:00
cketti 7e040ea84c Fix SpUsage lint warnings 2014-04-07 20:09:22 +02:00
cketti 3da2ef7fbe Fix PxUsage warning 2014-04-07 20:00:53 +02:00
cketti 8b93d37b39 Suppress warning about "inlined API" 2014-04-07 20:00:14 +02:00
cketti 136bdbc483 Fix whitespace to get rid of ExtraText lint warnings 2014-04-07 19:56:08 +02:00
cketti 0526ddd2aa Remove unused resources 2014-04-07 19:52:37 +02:00
cketti 114d72da3c Remove deprecated resource attributes 2014-04-07 19:31:10 +02:00
cketti ab72aa0dd7 Don't reuse IDs 2014-04-07 19:17:50 +02:00
cketti c53973910f View class referenced from a layout should be public 2014-04-07 18:53:47 +02:00
cketti 19b808b93b Don't use hardcoded package in namespace 2014-04-07 18:50:30 +02:00
cketti 4df53080d3 Ignore missing translations 2014-04-07 18:48:57 +02:00
cketti 945e539341 Remove some unused strings 2014-04-07 18:24:22 +02:00
cketti 857c72d691 Fix typo 2014-04-07 18:17:23 +02:00
cketti 088549ab62 Merge pull request #465 from jca02266/master
Changed for Android Gradle plugin 0.9
2014-04-07 18:15:40 +02:00
cketti 6a6e9979e2 Fix potential ClassCastException
Implemented the fix suggested by zjw in pull request #463
https://github.com/k9mail/k-9/pull/463

Fixes issue 5928
2014-04-07 17:46:39 +02:00
Koji Arai e0065ce014 Changed for Android Gradle plugin 0.9
see http://tools.android.com/tech-docs/new-build-system/migrating_to_09
2014-04-06 16:38:22 +09:00
cketti 16df038157 Merge pull request #464 from jca02266/master
Should match the buildToolsVersion with other build.gradle
2014-04-05 17:36:00 +02:00
Koji Arai 929a61c035 Should match the buildToolsVersion with other build.gradle 2014-04-05 12:57:28 +09:00