Merge "Update onboarding based on swipe up state" into pi-dev
This commit is contained in:
@@ -171,7 +171,7 @@ public class NavigationBarFragment extends Fragment implements Callbacks {
|
|||||||
private final OverviewProxyListener mOverviewProxyListener = new OverviewProxyListener() {
|
private final OverviewProxyListener mOverviewProxyListener = new OverviewProxyListener() {
|
||||||
@Override
|
@Override
|
||||||
public void onConnectionChanged(boolean isConnected) {
|
public void onConnectionChanged(boolean isConnected) {
|
||||||
mNavigationBarView.onOverviewProxyConnectionChanged(isConnected);
|
mNavigationBarView.updateStates();
|
||||||
updateScreenPinningGestures();
|
updateScreenPinningGestures();
|
||||||
WindowManagerWrapper.getInstance()
|
WindowManagerWrapper.getInstance()
|
||||||
.setNavBarVirtualKeyHapticFeedbackEnabled(!isConnected);
|
.setNavBarVirtualKeyHapticFeedbackEnabled(!isConnected);
|
||||||
@@ -188,6 +188,7 @@ public class NavigationBarFragment extends Fragment implements Callbacks {
|
|||||||
@Override
|
@Override
|
||||||
public void onInteractionFlagsChanged(@InteractionType int flags) {
|
public void onInteractionFlagsChanged(@InteractionType int flags) {
|
||||||
mNavigationBarView.updateStates();
|
mNavigationBarView.updateStates();
|
||||||
|
updateScreenPinningGestures();
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
@@ -681,6 +681,7 @@ public class NavigationBarView extends FrameLayout implements PluginListener<Nav
|
|||||||
updateSlippery();
|
updateSlippery();
|
||||||
reloadNavIcons();
|
reloadNavIcons();
|
||||||
updateNavButtonIcons();
|
updateNavButtonIcons();
|
||||||
|
setUpSwipeUpOnboarding(isQuickStepSwipeUpEnabled());
|
||||||
}
|
}
|
||||||
|
|
||||||
private void updateSlippery() {
|
private void updateSlippery() {
|
||||||
@@ -816,11 +817,6 @@ public class NavigationBarView extends FrameLayout implements PluginListener<Nav
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public void onOverviewProxyConnectionChanged(boolean isConnected) {
|
|
||||||
updateStates();
|
|
||||||
setUpSwipeUpOnboarding(isQuickStepSwipeUpEnabled());
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
protected void onDraw(Canvas canvas) {
|
protected void onDraw(Canvas canvas) {
|
||||||
mGestureHelper.onDraw(canvas);
|
mGestureHelper.onDraw(canvas);
|
||||||
@@ -1045,7 +1041,7 @@ public class NavigationBarView extends FrameLayout implements PluginListener<Nav
|
|||||||
onPluginDisconnected(null); // Create default gesture helper
|
onPluginDisconnected(null); // Create default gesture helper
|
||||||
Dependency.get(PluginManager.class).addPluginListener(this,
|
Dependency.get(PluginManager.class).addPluginListener(this,
|
||||||
NavGesture.class, false /* Only one */);
|
NavGesture.class, false /* Only one */);
|
||||||
setUpSwipeUpOnboarding(mOverviewProxyService.getProxy() != null);
|
setUpSwipeUpOnboarding(isQuickStepSwipeUpEnabled());
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|||||||
Reference in New Issue
Block a user