Skip to content

Commit aa57a6e

Browse files
Update ScreenManager.commit()
1 parent efc3385 commit aa57a6e

1 file changed

Lines changed: 4 additions & 16 deletions

File tree

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

Lines changed: 4 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -568,25 +568,13 @@ public void beginTransaction(){
568568
*/
569569
public void commit(final CompletionListener listener){
570570
softButtonManager.setBatchUpdates(false);
571-
softButtonManager.update(new CompletionListener() {
572-
boolean updateSuccessful = true;
571+
textAndGraphicManager.setBatchUpdates(false);
572+
textAndGraphicManager.update(new CompletionListener() {
573573
@Override
574574
public void onComplete(boolean success) {
575-
if (!success){
576-
updateSuccessful = false;
575+
if (listener != null) {
576+
listener.onComplete(success);
577577
}
578-
textAndGraphicManager.setBatchUpdates(false);
579-
textAndGraphicManager.update(new CompletionListener() {
580-
@Override
581-
public void onComplete(boolean success) {
582-
if (!success){
583-
updateSuccessful = false;
584-
}
585-
if (listener != null) {
586-
listener.onComplete(updateSuccessful);
587-
}
588-
}
589-
});
590578
}
591579
});
592580
}

0 commit comments

Comments
 (0)