Tell NavigationBarView when mode changes.
We were telling the NavigationBarView what mode it was in when it first connected to the OverviewProxyService, but not alerting it to any updates to the mode thereafter. Fixes: 229413744 Test: manual Change-Id: Iddced03b38032a27790bcf3bbfb710813d6ef139
This commit is contained in:
@@ -330,7 +330,8 @@ public class NavigationBar extends ViewController<NavigationBarView> implements
|
||||
@Override
|
||||
public void onConnectionChanged(boolean isConnected) {
|
||||
mView.onOverviewProxyConnectionChange(
|
||||
mOverviewProxyService.isEnabled(), mOverviewProxyService.shouldShowSwipeUpUI());
|
||||
mOverviewProxyService.isEnabled());
|
||||
mView.setShouldShowSwipeUpUi(mOverviewProxyService.shouldShowSwipeUpUI());
|
||||
updateScreenPinningGestures();
|
||||
}
|
||||
|
||||
@@ -1657,6 +1658,7 @@ public class NavigationBar extends ViewController<NavigationBarView> implements
|
||||
}
|
||||
if (mView != null) {
|
||||
mView.setNavBarMode(mode);
|
||||
mView.setShouldShowSwipeUpUi(mOverviewProxyService.shouldShowSwipeUpUI());
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
@@ -886,8 +886,11 @@ public class NavigationBarView extends FrameLayout {
|
||||
}
|
||||
}
|
||||
|
||||
void onOverviewProxyConnectionChange(boolean enabled, boolean showSwipeUpUi) {
|
||||
void onOverviewProxyConnectionChange(boolean enabled) {
|
||||
mOverviewProxyEnabled = enabled;
|
||||
}
|
||||
|
||||
void setShouldShowSwipeUpUi(boolean showSwipeUpUi) {
|
||||
mShowSwipeUpUi = showSwipeUpUi;
|
||||
updateStates();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user