Skip to content

Commit

Permalink
Fixed preview in Android studio
Browse files Browse the repository at this point in the history
  • Loading branch information
tokudu committed Jul 8, 2014
1 parent 1157c93 commit e3cb1a9
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -1028,7 +1028,7 @@ boolean smoothSlideTo(float slideOffset, int velocity) {

@Override
public void computeScroll() {
if (mDragHelper.continueSettling(true)) {
if (mDragHelper != null && mDragHelper.continueSettling(true)) {
if (!isSlidingEnabled()) {
mDragHelper.abort();
return;
Expand Down

0 comments on commit e3cb1a9

Please sign in to comment.