You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I had a bug in my app which fired multiple RPCs to update UI via ScreenManager.
I've spent a day debugging the case, and find out that ScreenManager.commit callback was not fired.
Digging down showed it was due to TextAndGraphicManager.isDirty is false, thus the following code would not invoke listener.
softButtonManager.update(newCompletionListener() {
booleanupdateSuccessful = true;
@OverridepublicvoidonComplete(booleansuccess) {
if (!success){
updateSuccessful = false;
}
textAndGraphicManager.setBatchUpdates(false);
textAndGraphicManager.update(newCompletionListener() {
@OverridepublicvoidonComplete(booleansuccess) {
// this method is never calledif (!success){
updateSuccessful = false;
}
listener.onComplete(updateSuccessful);
}
});
}
});
Reproduction Steps
Not sure about exact steps but try the following.
update some ui using ScreenManager
Invoke setSoftButtons() right inside ScreenManager.commit()
Repeat the same operation immediately
Expected Behavior
ScreenManager.commit callback should be called
Observed Behavior
ScreenManager.commit callback is never called for the second request.
getManager().getScreenManager().beginTransaction();
interfaceChanger.run();
getManager().getScreenManager().commit(success -> {
// here I call set soft buttons// then I start the same process again
});
The text was updated successfully, but these errors were encountered:
Bug Report
I had a bug in my app which fired multiple RPCs to update UI via ScreenManager.
I've spent a day debugging the case, and find out that
ScreenManager.commit
callback was not fired.Digging down showed it was due to TextAndGraphicManager.isDirty is false, thus the following code would not invoke listener.
Reproduction Steps
Not sure about exact steps but try the following.
Expected Behavior
ScreenManager.commit callback should be called
Observed Behavior
ScreenManager.commit callback is never called for the second request.
OS & Version Information
Test Case, Sample Code, and / or Example App
The text was updated successfully, but these errors were encountered: