Skip to content

Commit

Permalink
Fix ApplicationListeners being skipped (#158)
Browse files Browse the repository at this point in the history
* feat: Add TextInput#message for mobile text inputs

* chore: Add isEmpty checks

* fix: Fix Application#removeListener bug

* much simpler solution

* slight improvement
  • Loading branch information
phinner authored Nov 30, 2023
1 parent eddce8f commit f1e4bde
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions arc-core/src/arc/Application.java
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,11 @@ default void addListener(ApplicationListener listener){

/** Removes an application listener. */
default void removeListener(ApplicationListener listener){
synchronized(getListeners()){
getListeners().remove(listener);
}
post(() -> {
synchronized(getListeners()){
getListeners().remove(listener);
}
});
}

/** Call this before update() in each backend. */
Expand Down

0 comments on commit f1e4bde

Please sign in to comment.