Skip to content

Commit

Permalink
Fix dialog could not be shrinked if set paddingTop
Browse files Browse the repository at this point in the history
  • Loading branch information
JonesChi committed Nov 8, 2015
1 parent 1a19f2f commit 6b0842f
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ static void animateContent(final View view, int to, Animation.AnimationListener
}

static boolean listIsAtTop(AbsListView listView) {
return listView.getChildCount() == 0 || listView.getChildAt(0).getTop() == 0;
return listView.getChildCount() == 0 || listView.getChildAt(0).getTop() == listView.getPaddingTop();
}

/**
Expand Down

0 comments on commit 6b0842f

Please sign in to comment.