diff --git a/OsmAnd/src/net/osmand/plus/views/controls/SwipeDismissListViewTouchListener.java b/OsmAnd/src/net/osmand/plus/views/controls/SwipeDismissListViewTouchListener.java index 2705d4cb98..620f7d9446 100644 --- a/OsmAnd/src/net/osmand/plus/views/controls/SwipeDismissListViewTouchListener.java +++ b/OsmAnd/src/net/osmand/plus/views/controls/SwipeDismissListViewTouchListener.java @@ -350,11 +350,11 @@ public class SwipeDismissListViewTouchListener implements View.OnTouchListener { * dismiss one or more list items. */ public SwipeDismissListViewTouchListener(Context ctx, ListView listView, DismissCallbacks callbacks) { - ViewConfiguration vc = ViewConfiguration.get(listView.getContext()); + ViewConfiguration vc = ViewConfiguration.get(ctx); mSlop = vc.getScaledTouchSlop(); mMinFlingVelocity = vc.getScaledMinimumFlingVelocity() * 16; mMaxFlingVelocity = vc.getScaledMaximumFlingVelocity(); - mAnimationTime = listView.getContext().getResources().getInteger( + mAnimationTime = ctx.getResources().getInteger( android.R.integer.config_shortAnimTime); mListView = listView; mCallbacks = callbacks;