am e1791add: Merge "add a null check around scrollAdapter access"

* commit 'e1791add1a19f1860084889188168ca32fdf3924':
  add a null check around scrollAdapter access
This commit is contained in:
Chris Wren
2014-03-31 18:58:46 +00:00
committed by Android Git Automerger

View File

@@ -407,7 +407,8 @@ public class ExpandHelper implements Gefingerpoken, OnClickListener {
}
case MotionEvent.ACTION_DOWN:
mWatchingForPull = isInside(mScrollAdapter.getHostView(), x, y);
mWatchingForPull = mScrollAdapter != null &&
isInside(mScrollAdapter.getHostView(), x, y);
mLastMotionY = y;
break;