File tree Expand file tree Collapse file tree
base/src/main/java/com/smartdevicelink/managers/screen Expand file tree Collapse file tree Original file line number Diff line number Diff 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 }
You can’t perform that action at this time.
0 commit comments