Commit 2d3b8946 authored by Brandon Wylie's avatar Brandon Wylie Committed by Commit Bot

[Tablet] Move conditional showing of the status icon to LocationBarPhone

Bug: 987905
Change-Id: Id5e8e366cabba5cea56725ff459de0f49c19c4ac
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1728267Reviewed-by: default avatarTheresa  <twellington@chromium.org>
Commit-Queue: Brandon Wylie <wylieb@chromium.org>
Cr-Commit-Position: refs/heads/master@{#683781}
parent fdceb0c5
...@@ -1000,8 +1000,6 @@ public class LocationBarLayout extends FrameLayout ...@@ -1000,8 +1000,6 @@ public class LocationBarLayout extends FrameLayout
mShouldShowSearchEngineLogo, mIsSearchEngineGoogle, mSearchEngineUrl); mShouldShowSearchEngineLogo, mIsSearchEngineGoogle, mSearchEngineUrl);
mToolbarDataProvider.updateSearchEngineStatusIcon( mToolbarDataProvider.updateSearchEngineStatusIcon(
mShouldShowSearchEngineLogo, mIsSearchEngineGoogle, mSearchEngineUrl); mShouldShowSearchEngineLogo, mIsSearchEngineGoogle, mSearchEngineUrl);
mStatusViewCoordinator.setShowIconsWhenUrlFocused(shouldShowSearchEngineLogo);
} }
@Override @Override
......
...@@ -65,6 +65,7 @@ public class LocationBarPhone extends LocationBarLayout { ...@@ -65,6 +65,7 @@ public class LocationBarPhone extends LocationBarLayout {
if (mShouldShowSearchEngineLogo) { if (mShouldShowSearchEngineLogo) {
mFirstVisibleFocusedView = findViewById(R.id.location_bar_status); mFirstVisibleFocusedView = findViewById(R.id.location_bar_status);
} }
mStatusViewCoordinator.setShowIconsWhenUrlFocused(shouldShowSearchEngineLogo);
} }
/** /**
......
...@@ -296,6 +296,7 @@ class StatusMediator { ...@@ -296,6 +296,7 @@ class StatusMediator {
mIsSearchEngineGoogle = isSearchEngineGoogle; mIsSearchEngineGoogle = isSearchEngineGoogle;
mShouldShowSearchEngineLogo = shouldShowSearchEngineLogo; mShouldShowSearchEngineLogo = shouldShowSearchEngineLogo;
updateLocationBarIcon();
} }
/** /**
......
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