From 5185492b049926511d727a510fc2dffcc0947c88 Mon Sep 17 00:00:00 2001 From: mar-v-in Date: Wed, 9 Jul 2014 00:10:09 +0200 Subject: [PATCH] Fix OperationResultParcel Naming conventions save lives... or atleast make addAll() work --- .../keychain/service/OperationResultParcel.java | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/OpenKeychain/src/main/java/org/sufficientlysecure/keychain/service/OperationResultParcel.java b/OpenKeychain/src/main/java/org/sufficientlysecure/keychain/service/OperationResultParcel.java index 8db48ae3b..f868d931c 100644 --- a/OpenKeychain/src/main/java/org/sufficientlysecure/keychain/service/OperationResultParcel.java +++ b/OpenKeychain/src/main/java/org/sufficientlysecure/keychain/service/OperationResultParcel.java @@ -305,20 +305,20 @@ public class OperationResultParcel implements Parcelable { public static class OperationLog implements Iterable { - private final List parcels = new ArrayList(); + private final List mParcels = new ArrayList(); /// Simple convenience method public void add(LogLevel level, LogType type, int indent, Object... parameters) { Log.d(Constants.TAG, type.toString()); - parcels.add(new OperationResultParcel.LogEntryParcel(level, type, indent, parameters)); + mParcels.add(new OperationResultParcel.LogEntryParcel(level, type, indent, parameters)); } public void add(LogLevel level, LogType type, int indent) { - parcels.add(new OperationResultParcel.LogEntryParcel(level, type, indent, (Object[]) null)); + mParcels.add(new OperationResultParcel.LogEntryParcel(level, type, indent, (Object[]) null)); } public boolean containsWarnings() { - for(LogEntryParcel entry : new IterableIterator(parcels.iterator())) { + for(LogEntryParcel entry : new IterableIterator(mParcels.iterator())) { if (entry.mLevel == LogLevel.WARN || entry.mLevel == LogLevel.ERROR) { return true; } @@ -327,20 +327,20 @@ public class OperationResultParcel implements Parcelable { } public void addAll(List parcels) { - parcels.addAll(parcels); + mParcels.addAll(parcels); } public List toList() { - return parcels; + return mParcels; } public boolean isEmpty() { - return parcels.isEmpty(); + return mParcels.isEmpty(); } @Override public Iterator iterator() { - return parcels.iterator(); + return mParcels.iterator(); } }