return actual last log entry, including from sublogentryparcels

This commit is contained in:
Vincent Breitmoser 2015-06-15 03:45:43 +02:00
parent b7834b4326
commit b8305d43dc

View File

@ -854,7 +854,11 @@ public abstract class OperationResult implements Parcelable {
if (mParcels.isEmpty()) { if (mParcels.isEmpty()) {
return null; return null;
} }
return mParcels.get(mParcels.size() -1); LogEntryParcel last = mParcels.get(mParcels.size() -1);
if (last instanceof SubLogEntryParcel) {
return ((SubLogEntryParcel) last).getSubResult().getLog().getLast();
}
return last;
} }
@Override @Override