Skip to content
This repository has been archived by the owner on Jul 22, 2024. It is now read-only.

Commit

Permalink
Dispatch Windows (and internal Gecko) calls in the correct thread
Browse files Browse the repository at this point in the history
  • Loading branch information
MortimerGoro committed Apr 9, 2020
1 parent 16e1b74 commit 5851492
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -961,7 +961,8 @@ void pauseGeckoViewCompositor() {
return;
}
mIsPresentingImmersive = true;
mWindows.enterImmersiveMode();
runOnUiThread(() -> mWindows.enterImmersiveMode());

TelemetryWrapper.startImmersive();
GleanMetricsService.startImmersive();
PauseCompositorRunnable runnable = new PauseCompositorRunnable();
Expand All @@ -985,7 +986,8 @@ void resumeGeckoViewCompositor() {
return;
}
mIsPresentingImmersive = false;
mWindows.exitImmersiveMode();
runOnUiThread(() -> mWindows.exitImmersiveMode());

// Show the window in front of you when you exit immersive mode.
resetUIYaw();

Expand Down

0 comments on commit 5851492

Please sign in to comment.