mirror of
https://github.com/moparisthebest/open-keychain
synced 2024-11-27 11:12:15 -05:00
Merge pull request #1143 from manojkhannakm/development
Fix for Issue #1115
This commit is contained in:
commit
f1b1ecae20
@ -48,6 +48,7 @@ public class SignEncryptOperation extends BaseOperation {
|
|||||||
byte[] inputBytes = input.getBytes();
|
byte[] inputBytes = input.getBytes();
|
||||||
byte[] outputBytes = null;
|
byte[] outputBytes = null;
|
||||||
|
|
||||||
|
int total = inputBytes != null ? 1 : inputUris.size(), count = 0;
|
||||||
ArrayList<PgpSignEncryptResult> results = new ArrayList<>();
|
ArrayList<PgpSignEncryptResult> results = new ArrayList<>();
|
||||||
|
|
||||||
do {
|
do {
|
||||||
@ -104,7 +105,7 @@ public class SignEncryptOperation extends BaseOperation {
|
|||||||
}
|
}
|
||||||
|
|
||||||
PgpSignEncryptOperation op = new PgpSignEncryptOperation(mContext, mProviderHelper,
|
PgpSignEncryptOperation op = new PgpSignEncryptOperation(mContext, mProviderHelper,
|
||||||
new ProgressScaler(), mCancelled);
|
new ProgressScaler(mProgressable, 100 * count / total, 100 * ++count / total, 100), mCancelled);
|
||||||
PgpSignEncryptResult result = op.execute(input, inputData, outStream);
|
PgpSignEncryptResult result = op.execute(input, inputData, outStream);
|
||||||
results.add(result);
|
results.add(result);
|
||||||
log.add(result, 2);
|
log.add(result, 2);
|
||||||
|
Loading…
Reference in New Issue
Block a user