Commit 0c6f9add authored by Ted Choc's avatar Ted Choc Committed by Commit Bot

Do not restore browser controls positions for non-interactable tabs.

When switching tabs in the tab switcher, the new tab isn't interactable
until you leave the switcher.  Thus, we should ignore resetting the state
of the tab until we leave the switcher.

BUG=1040033

Change-Id: Ida4c27c00cd6b3bb6a6ae517555c2bcac30ac612
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2021286Reviewed-by: default avatarTheresa  <twellington@chromium.org>
Commit-Queue: Ted Choc <tedchoc@chromium.org>
Cr-Commit-Position: refs/heads/master@{#735245}
parent 95cc3b48
...@@ -360,7 +360,7 @@ public class ChromeFullscreenManager extends FullscreenManager ...@@ -360,7 +360,7 @@ public class ChromeFullscreenManager extends FullscreenManager
mBrowserVisibilityDelegate.showControlsTransient(); mBrowserVisibilityDelegate.showControlsTransient();
updateMultiTouchZoomSupport(!getPersistentFullscreenMode()); updateMultiTouchZoomSupport(!getPersistentFullscreenMode());
TabGestureStateListener.from(tab).setFullscreenManager(this); TabGestureStateListener.from(tab).setFullscreenManager(this);
restoreControlsPositions(); if (tab.isUserInteractable()) restoreControlsPositions();
} }
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment