From 01ebd7c57f2fe422f276d0dae16a92cce637d8cf Mon Sep 17 00:00:00 2001 From: Randall Barker Date: Tue, 25 Apr 2017 12:50:59 -0700 Subject: [PATCH] Bug 1358805 - part 3: Keep the toolbar state between UI thread and compositor thread consistent once IPC is open r=kats MozReview-Commit-ID: H7qrShryomi --- .../java/org/mozilla/gecko/gfx/DynamicToolbarAnimator.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/mobile/android/geckoview/src/main/java/org/mozilla/gecko/gfx/DynamicToolbarAnimator.java b/mobile/android/geckoview/src/main/java/org/mozilla/gecko/gfx/DynamicToolbarAnimator.java index 9a2cb7513776..7a5b59c83d58 100644 --- a/mobile/android/geckoview/src/main/java/org/mozilla/gecko/gfx/DynamicToolbarAnimator.java +++ b/mobile/android/geckoview/src/main/java/org/mozilla/gecko/gfx/DynamicToolbarAnimator.java @@ -154,6 +154,11 @@ public class DynamicToolbarAnimator { private void dumpStateToCompositor() { if ((mCompositor != null) && mCompositorControllerOpen) { mCompositor.setMaxToolbarHeight(mMaxToolbarHeight); + if ((mToolbarChromeProxy != null) && mToolbarChromeProxy.isToolbarChromeVisible()) { + mCompositor.sendToolbarAnimatorMessage(LayerView.REQUEST_SHOW_TOOLBAR_IMMEDIATELY); + } else { + mCompositor.sendToolbarAnimatorMessage(LayerView.REQUEST_HIDE_TOOLBAR_IMMEDIATELY); + } for (PinReason reason : pinFlags) { mCompositor.setPinned(true, reason.mValue); }