changed KeyserverSyncAdapterService to work with START_REDELIVER_INTENT

This commit is contained in:
Adithya Abraham Philip
2015-10-31 00:20:00 +05:30
parent 0641b9cba6
commit 4284aac0aa
2 changed files with 87 additions and 39 deletions

View File

@@ -540,7 +540,9 @@ public class ImportOperation extends BaseOperation<ImportKeyringParcel> {
// adding required information to mResultType
// special case,no keys requested for import
if (mBadKeys == 0 && mNewKeys == 0 && mUpdatedKeys == 0) {
if (mBadKeys == 0 && mNewKeys == 0 && mUpdatedKeys == 0
&& (mResultType & ImportKeyResult.RESULT_CANCELLED)
!= ImportKeyResult.RESULT_CANCELLED) {
mResultType = ImportKeyResult.RESULT_FAIL_NOTHING;
} else {
if (mNewKeys > 0) {