Skip to content

Commit c86d26d

Browse files
committed
Adjusted when updateTargetStateWithErrorState is called. Modified currentScreenDataUpdateListener.onError(updatedState) from null to updatedState.
1 parent 0010385 commit c86d26d

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

base/src/main/java/com/smartdevicelink/managers/screen/BaseTextAndGraphicManager.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -242,8 +242,8 @@ void updatePendingOperationsWithFailedScreenState(TextAndGraphicState errorState
242242
continue;
243243
}
244244
((TextAndGraphicUpdateOperation) task).setCurrentScreenData(currentScreenData);
245+
((TextAndGraphicUpdateOperation) task).updateTargetStateWithErrorState(errorState);
245246
}
246-
updateOperation.updateTargetStateWithErrorState(errorState);
247247
}
248248

249249
interface CurrentScreenDataUpdatedListener {

base/src/main/java/com/smartdevicelink/managers/screen/TextAndGraphicUpdateOperation.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,7 @@ public void onResponse(int correlationId, RPCResponse response) {
202202
internalInterface.get().sendRPC(show);
203203
} else {
204204
DebugTool.logInfo(TAG, "ISdl is null Text and Graphic update failed");
205-
currentScreenDataUpdateListener.onError(null);
205+
currentScreenDataUpdateListener.onError(updatedState);
206206
finishOperation(false);
207207
return;
208208
}
@@ -218,7 +218,7 @@ public void onResponse(int correlationId, RPCResponse response) {
218218
updateCurrentScreenDataFromSetDisplayLayout(setLayout);
219219
} else {
220220
DebugTool.logInfo(TAG, "Text and Graphic SetDisplayLayout failed");
221-
currentScreenDataUpdateListener.onError(null);
221+
currentScreenDataUpdateListener.onError(updatedState);
222222
}
223223
listener.onComplete(response.getSuccess());
224224
}
@@ -227,7 +227,7 @@ public void onResponse(int correlationId, RPCResponse response) {
227227
internalInterface.get().sendRPC(setLayout);
228228
} else {
229229
DebugTool.logInfo(TAG, "ISdl is null Text and Graphic update failed");
230-
currentScreenDataUpdateListener.onError(null);
230+
currentScreenDataUpdateListener.onError(updatedState);
231231
finishOperation(false);
232232
return;
233233
}

0 commit comments

Comments
 (0)