Fix
This commit is contained in:
parent
97aac265ac
commit
4f46daa6be
1 changed files with 2 additions and 2 deletions
|
@ -350,11 +350,11 @@ public class SwipeDismissListViewTouchListener implements View.OnTouchListener {
|
||||||
* dismiss one or more list items.
|
* dismiss one or more list items.
|
||||||
*/
|
*/
|
||||||
public SwipeDismissListViewTouchListener(Context ctx, ListView listView, DismissCallbacks callbacks) {
|
public SwipeDismissListViewTouchListener(Context ctx, ListView listView, DismissCallbacks callbacks) {
|
||||||
ViewConfiguration vc = ViewConfiguration.get(listView.getContext());
|
ViewConfiguration vc = ViewConfiguration.get(ctx);
|
||||||
mSlop = vc.getScaledTouchSlop();
|
mSlop = vc.getScaledTouchSlop();
|
||||||
mMinFlingVelocity = vc.getScaledMinimumFlingVelocity() * 16;
|
mMinFlingVelocity = vc.getScaledMinimumFlingVelocity() * 16;
|
||||||
mMaxFlingVelocity = vc.getScaledMaximumFlingVelocity();
|
mMaxFlingVelocity = vc.getScaledMaximumFlingVelocity();
|
||||||
mAnimationTime = listView.getContext().getResources().getInteger(
|
mAnimationTime = ctx.getResources().getInteger(
|
||||||
android.R.integer.config_shortAnimTime);
|
android.R.integer.config_shortAnimTime);
|
||||||
mListView = listView;
|
mListView = listView;
|
||||||
mCallbacks = callbacks;
|
mCallbacks = callbacks;
|
||||||
|
|
Loading…
Reference in a new issue