mirror of
https://github.com/moparisthebest/open-keychain
synced 2024-11-17 14:25:08 -05:00
Dont remove result and warnings from result
Some more debug output, too
This commit is contained in:
parent
efc5575d56
commit
cb4f1933d5
@ -380,6 +380,7 @@ public class ApgService extends Service {
|
||||
|
||||
/* return if errors happened */
|
||||
if (pReturn.getStringArrayList(ret.ERRORS.name()).size() != 0) {
|
||||
Log.v(TAG, "Errors after preparing, not executing "+call);
|
||||
pReturn.putInt(ret.ERROR.name(), error.ARGUMENTS_MISSING.shifted_ordinal());
|
||||
return false;
|
||||
}
|
||||
@ -460,6 +461,7 @@ public class ApgService extends Service {
|
||||
ArrayList<String> fprints = new ArrayList<String>();
|
||||
ArrayList<String> ids = new ArrayList<String>();
|
||||
while (mCursor.moveToNext()) {
|
||||
Log.v(TAG, "adding key "+Apg.getSmallFingerPrint(mCursor.getLong(0)));
|
||||
fprints.add(Apg.getSmallFingerPrint(mCursor.getLong(0)));
|
||||
ids.add(mCursor.getString(1));
|
||||
}
|
||||
|
@ -345,8 +345,6 @@ public class ApgCon {
|
||||
Boolean success = (Boolean) IApgService.class.getMethod(function, Bundle.class, Bundle.class).invoke(apgService, pArgs, pReturn);
|
||||
error_list.addAll(pReturn.getStringArrayList(ret.ERRORS.name()));
|
||||
warning_list.addAll(pReturn.getStringArrayList(ret.WARNINGS.name()));
|
||||
pReturn.remove(ret.ERRORS.name());
|
||||
pReturn.remove(ret.WARNINGS.name());
|
||||
return success;
|
||||
} catch (NoSuchMethodException e) {
|
||||
if (stacktraces)
|
||||
|
Loading…
Reference in New Issue
Block a user