Merge "Fix swipe thresholds not being propagated." into tm-dev am: ae925af047
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/17508938 Change-Id: Icff2ee096e5d11ef591b80149f834955aaa2fa68 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
@@ -360,9 +360,7 @@ public class NavigationBarEdgePanel extends View implements NavigationEdgeBackPl
|
|||||||
.getDimension(R.dimen.navigation_edge_action_drag_threshold);
|
.getDimension(R.dimen.navigation_edge_action_drag_threshold);
|
||||||
mSwipeProgressThreshold = context.getResources()
|
mSwipeProgressThreshold = context.getResources()
|
||||||
.getDimension(R.dimen.navigation_edge_action_progress_threshold);
|
.getDimension(R.dimen.navigation_edge_action_progress_threshold);
|
||||||
if (mBackAnimation != null) {
|
initializeBackAnimation();
|
||||||
mBackAnimation.setSwipeThresholds(mSwipeTriggerThreshold, mSwipeProgressThreshold);
|
|
||||||
}
|
|
||||||
|
|
||||||
setVisibility(GONE);
|
setVisibility(GONE);
|
||||||
Executor backgroundExecutor = Dependency.get(Dependency.BACKGROUND_EXECUTOR);
|
Executor backgroundExecutor = Dependency.get(Dependency.BACKGROUND_EXECUTOR);
|
||||||
@@ -391,6 +389,13 @@ public class NavigationBarEdgePanel extends View implements NavigationEdgeBackPl
|
|||||||
|
|
||||||
public void setBackAnimation(BackAnimation backAnimation) {
|
public void setBackAnimation(BackAnimation backAnimation) {
|
||||||
mBackAnimation = backAnimation;
|
mBackAnimation = backAnimation;
|
||||||
|
initializeBackAnimation();
|
||||||
|
}
|
||||||
|
|
||||||
|
private void initializeBackAnimation() {
|
||||||
|
if (mBackAnimation != null) {
|
||||||
|
mBackAnimation.setSwipeThresholds(mSwipeTriggerThreshold, mSwipeProgressThreshold);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|||||||
Reference in New Issue
Block a user