small code reformation in pgp decryption service
This commit is contained in:
parent
6371d2b7a9
commit
dc02e2b498
|
@ -134,9 +134,10 @@ public class PgpDecryptionService {
|
||||||
break;
|
break;
|
||||||
case OpenPgpApi.RESULT_CODE_USER_INTERACTION_REQUIRED:
|
case OpenPgpApi.RESULT_CODE_USER_INTERACTION_REQUIRED:
|
||||||
synchronized (PgpDecryptionService.this) {
|
synchronized (PgpDecryptionService.this) {
|
||||||
|
PendingIntent pendingIntent = result.getParcelableExtra(OpenPgpApi.RESULT_INTENT);
|
||||||
messages.addFirst(message);
|
messages.addFirst(message);
|
||||||
currentMessage = null;
|
currentMessage = null;
|
||||||
storePendingIntent((PendingIntent) result.getParcelableExtra(OpenPgpApi.RESULT_INTENT));
|
storePendingIntent(pendingIntent);
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case OpenPgpApi.RESULT_CODE_ERROR:
|
case OpenPgpApi.RESULT_CODE_ERROR:
|
||||||
|
@ -164,9 +165,10 @@ public class PgpDecryptionService {
|
||||||
break;
|
break;
|
||||||
case OpenPgpApi.RESULT_CODE_USER_INTERACTION_REQUIRED:
|
case OpenPgpApi.RESULT_CODE_USER_INTERACTION_REQUIRED:
|
||||||
synchronized (PgpDecryptionService.this) {
|
synchronized (PgpDecryptionService.this) {
|
||||||
|
PendingIntent pendingIntent = result.getParcelableExtra(OpenPgpApi.RESULT_INTENT);
|
||||||
messages.addFirst(message);
|
messages.addFirst(message);
|
||||||
currentMessage = null;
|
currentMessage = null;
|
||||||
storePendingIntent((PendingIntent) result.getParcelableExtra(OpenPgpApi.RESULT_INTENT));
|
storePendingIntent(pendingIntent);
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case OpenPgpApi.RESULT_CODE_ERROR:
|
case OpenPgpApi.RESULT_CODE_ERROR:
|
||||||
|
|
Loading…
Reference in New Issue