fix passtrough of params
This commit is contained in:
@@ -131,11 +131,7 @@ public class OpenPgpApi {
|
||||
try {
|
||||
params.putInt(OpenPgpConstants.PARAMS_API_VERSION, OpenPgpConstants.API_VERSION);
|
||||
|
||||
// default result is error
|
||||
Bundle result = new Bundle();
|
||||
result.putInt(OpenPgpConstants.RESULT_CODE, OpenPgpConstants.RESULT_CODE_ERROR);
|
||||
result.putParcelable(OpenPgpConstants.RESULT_ERRORS,
|
||||
new OpenPgpError(OpenPgpError.GENERIC_ERROR, "This should never happen!"));
|
||||
|
||||
if (operationId == OPERATION_GET_KEY_IDS) {
|
||||
result = mService.getKeyIds(params);
|
||||
|
||||
@@ -33,7 +33,7 @@ public class OpenPgpConstants {
|
||||
public static final String PARAMS_USER_IDS = "user_ids";
|
||||
public static final String PARAMS_KEY_IDS = "key_ids";
|
||||
|
||||
/* Bundle return */
|
||||
/* Service Bundle returns */
|
||||
public static final String RESULT_CODE = "result_code";
|
||||
public static final String RESULT_SIGNATURE = "signature";
|
||||
public static final String RESULT_ERRORS = "error";
|
||||
@@ -46,4 +46,7 @@ public class OpenPgpConstants {
|
||||
// executeServiceMethod intent and do it again with params from intent
|
||||
public static final int RESULT_CODE_USER_INTERACTION_REQUIRED = 2;
|
||||
|
||||
/* PendingIntent returns */
|
||||
public static final String PI_RESULT_PARAMS = "params";
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user