use sub results in import
This commit is contained in:
1 parent
6699917279
commit
34345cf237
2 files changed
+14
-3
No files matched your search
+8
-1
@@ -641,7 +641,7 @@ public abstract class OperationResult implements Parcelable {
|
||||
|
||||
public void add(OperationResult subResult, int indent) {
|
||||
OperationLog subLog = subResult.getLog();
|
||||
mParcels.add(new SubLogEntryParcel(subResult, subLog.getLast().mType, indent, subLog.getLast().mParameters));
|
||||
mParcels.add(new SubLogEntryParcel(subResult, subLog.getFirst().mType, indent, subLog.getFirst().mParameters));
|
||||
}
|
||||
|
||||
public void clear() {
|
||||
@@ -678,6 +678,13 @@ public abstract class OperationResult implements Parcelable {
|
||||
return mParcels.isEmpty();
|
||||
}
|
||||
|
||||
public LogEntryParcel getFirst() {
|
||||
if (mParcels.isEmpty()) {
|
||||
return null;
|
||||
}
|
||||
return mParcels.get(0);
|
||||
}
|
||||
|
||||
public LogEntryParcel getLast() {
|
||||
if (mParcels.isEmpty()) {
|
||||
return null;
|
||||
|
||||
Reference in new issue
Block a user