From 6b0842f22155930354b55edbc8690d0e2861a503 Mon Sep 17 00:00:00 2001 From: Jones Chi Date: Sun, 8 Nov 2015 18:42:51 +0800 Subject: [PATCH] Fix dialog could not be shrinked if set paddingTop --- dialogplus/src/main/java/com/orhanobut/dialogplus/Utils.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dialogplus/src/main/java/com/orhanobut/dialogplus/Utils.java b/dialogplus/src/main/java/com/orhanobut/dialogplus/Utils.java index ce52041..8fe9b41 100644 --- a/dialogplus/src/main/java/com/orhanobut/dialogplus/Utils.java +++ b/dialogplus/src/main/java/com/orhanobut/dialogplus/Utils.java @@ -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(); } /**