mirror of
https://github.com/moparisthebest/open-keychain
synced 2024-11-27 11:12:15 -05:00
get back to a working state
This commit is contained in:
parent
5917303c1d
commit
5496b42fe6
@ -138,13 +138,15 @@ public class DecryptFilesListFragment extends CryptoOperationFragment {
|
|||||||
|
|
||||||
private void displayInputUris(ArrayList<Uri> uris) {
|
private void displayInputUris(ArrayList<Uri> uris) {
|
||||||
mInputUris = uris;
|
mInputUris = uris;
|
||||||
mOutputUris = new ArrayList<>(uris.size());
|
// mOutputUris = new ArrayList<>(uris.size());
|
||||||
for (Uri uri : uris) {
|
for (Uri uri : uris) {
|
||||||
mAdapter.add(uri);
|
mAdapter.add(uri);
|
||||||
|
/*
|
||||||
String targetName = (mEncryptFilenames ? String.valueOf(filenameCounter) : FileHelper.getFilename(getActivity(), model.inputUri))
|
String targetName = (mEncryptFilenames ? String.valueOf(filenameCounter) : FileHelper.getFilename(getActivity(), model.inputUri))
|
||||||
+ (mUseArmor ? Constants.FILE_EXTENSION_ASC : Constants.FILE_EXTENSION_PGP_MAIN);
|
+ (mUseArmor ? Constants.FILE_EXTENSION_ASC : Constants.FILE_EXTENSION_PGP_MAIN);
|
||||||
mOutputUris.add(TemporaryStorageProvider.createFile(getActivity(), targetName));
|
mOutputUris.add(TemporaryStorageProvider.createFile(getActivity(), targetName));
|
||||||
filenameCounter++;
|
filenameCounter++;
|
||||||
|
*/
|
||||||
}
|
}
|
||||||
|
|
||||||
mPendingInputUris = uris;
|
mPendingInputUris = uris;
|
||||||
@ -230,8 +232,8 @@ public class DecryptFilesListFragment extends CryptoOperationFragment {
|
|||||||
Log.d(Constants.TAG, "mInputUri=" + mCurrentInputUri + ", mOutputUri=" + mCurrentOutputUri);
|
Log.d(Constants.TAG, "mInputUri=" + mCurrentInputUri + ", mOutputUri=" + mCurrentOutputUri);
|
||||||
|
|
||||||
PgpDecryptVerifyInputParcel input = new PgpDecryptVerifyInputParcel(mCurrentInputUri, mCurrentOutputUri)
|
PgpDecryptVerifyInputParcel input = new PgpDecryptVerifyInputParcel(mCurrentInputUri, mCurrentOutputUri)
|
||||||
.setAllowSymmetricDecryption(true)
|
// .setDecryptMetadataOnly(true)
|
||||||
.setDecryptMetadataOnly(true);
|
.setAllowSymmetricDecryption(true);
|
||||||
|
|
||||||
data.putParcelable(KeychainIntentService.DECRYPT_VERIFY_PARCEL, input);
|
data.putParcelable(KeychainIntentService.DECRYPT_VERIFY_PARCEL, input);
|
||||||
data.putParcelable(KeychainIntentService.EXTRA_CRYPTO_INPUT, cryptoInput);
|
data.putParcelable(KeychainIntentService.EXTRA_CRYPTO_INPUT, cryptoInput);
|
||||||
|
Loading…
Reference in New Issue
Block a user