Skip to content

Commit

Permalink
Fix activity cannot receive application!!
Browse files Browse the repository at this point in the history
  • Loading branch information
GabrielBRDeveloper committed Jul 24, 2024
1 parent 795db23 commit 0b55ddd
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion core/src/br/nullexcept/mux/app/ApplicationRuntime.java
Original file line number Diff line number Diff line change
Expand Up @@ -85,9 +85,9 @@ void start() {

void boot(Window window, Activity activity) {
window.destroy();
window.setWindowObserver(buildObserver(activity));
activity.appRuntime = this;
activity.mWindow = window;
window.setWindowObserver(buildObserver(activity));
window.create();
window.setVisible(true);
}
Expand Down Expand Up @@ -183,6 +183,7 @@ Window.WindowObserver buildObserver(Activity activity) {
synchronized (activities) {
activities.add(activity.stack);
}
activity.appRuntime = this;
return new WindowObserver(activity);
}

Expand Down

0 comments on commit 0b55ddd

Please sign in to comment.