Skip to content
Prev Previous commit
Adjusted when updateTargetStateWithErrorState is called. Modified cur…
…rentScreenDataUpdateListener.onError(updatedState) from null to updatedState.
  • Loading branch information
ChloeMJM committed Sep 20, 2022
commit c86d26d12c475c7be7a9e46d2311a9893738ed06
Original file line number Diff line number Diff line change
Expand Up @@ -242,8 +242,8 @@ void updatePendingOperationsWithFailedScreenState(TextAndGraphicState errorState
continue;
}
((TextAndGraphicUpdateOperation) task).setCurrentScreenData(currentScreenData);
((TextAndGraphicUpdateOperation) task).updateTargetStateWithErrorState(errorState);
}
updateOperation.updateTargetStateWithErrorState(errorState);
}

interface CurrentScreenDataUpdatedListener {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@ public void onResponse(int correlationId, RPCResponse response) {
internalInterface.get().sendRPC(show);
} else {
DebugTool.logInfo(TAG, "ISdl is null Text and Graphic update failed");
currentScreenDataUpdateListener.onError(null);
currentScreenDataUpdateListener.onError(updatedState);
finishOperation(false);
return;
}
Expand All @@ -218,7 +218,7 @@ public void onResponse(int correlationId, RPCResponse response) {
updateCurrentScreenDataFromSetDisplayLayout(setLayout);
} else {
DebugTool.logInfo(TAG, "Text and Graphic SetDisplayLayout failed");
currentScreenDataUpdateListener.onError(null);
currentScreenDataUpdateListener.onError(updatedState);
}
listener.onComplete(response.getSuccess());
}
Expand All @@ -227,7 +227,7 @@ public void onResponse(int correlationId, RPCResponse response) {
internalInterface.get().sendRPC(setLayout);
} else {
DebugTool.logInfo(TAG, "ISdl is null Text and Graphic update failed");
currentScreenDataUpdateListener.onError(null);
currentScreenDataUpdateListener.onError(updatedState);
finishOperation(false);
return;
}
Expand Down