Use Document API on KitKat for file encrypt/decrypt

This commit is contained in:
mar-v-in
2014-06-10 20:57:48 +02:00
parent 08d63340c9
commit f55bc41682
6 changed files with 198 additions and 52 deletions

View File

@@ -788,7 +788,7 @@ public class KeychainIntentService extends IntentService
// InputStream
InputStream in = getContentResolver().openInputStream(providerUri);
return new InputData(in, PgpHelper.getLengthOfStream(in));
return new InputData(in, 0);
default:
throw new PgpGeneralException("No target choosen!");