Commit 675aaeff authored by Tomasz Wiszkowski's avatar Tomasz Wiszkowski Committed by Commit Bot

Drop check for tablet mode in StatusView.

Navigation icon is changed only in tablet mode.

Bug: 871798

Change-Id: Iab19f02b93566f35a0a65362e035bf82851cad73
Reviewed-on: https://chromium-review.googlesource.com/c/1391995
Commit-Queue: Tomasz Wiszkowski <ender@google.com>
Reviewed-by: default avatarTheresa <twellington@chromium.org>
Cr-Commit-Position: refs/heads/master@{#619435}
parent 8a5a16af
......@@ -23,7 +23,6 @@ class StatusMediator {
private boolean mVerboseStatusSpaceAvailable;
private boolean mPageIsPreview;
private boolean mPageIsOffline;
private boolean mTabletMode;
private int mUrlMinWidth;
private int mSeparatorMinWidth;
......@@ -109,13 +108,6 @@ class StatusMediator {
mSeparatorMinWidth = width;
}
/**
* Toggle tablet mode.
*/
void setTabletMode(boolean isTablet) {
mTabletMode = isTablet;
}
/**
* Specify object to receive status click events.
*
......@@ -265,7 +257,7 @@ class StatusMediator {
* - not shown if URL is focused.
*/
private void updateLocationBarIcon() {
if (mUrlHasFocus && mTabletMode) {
if (mUrlHasFocus) {
mModel.set(StatusProperties.STATUS_ICON_RES, mNavigationIconRes);
mModel.set(StatusProperties.STATUS_ICON_TINT_RES, mNavigationIconTintRes);
mModel.set(StatusProperties.STATUS_ICON_DESCRIPTION_RES,
......
......@@ -73,9 +73,6 @@ public class StatusViewCoordinator implements View.OnClickListener {
mMediator.setVerboseStatusTextMinWidth(
res.getDimensionPixelSize(R.dimen.location_bar_min_verbose_status_text_width));
mMediator.setTabletMode(mIsTablet);
mMediator.setNavigationButtonType(NavigationButtonType.PAGE);
}
/**
......
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