Aidan Follestad 10 years ago
parent
commit
efca644221

+ 1 - 0
library/src/main/java/com/afollestad/materialdialogs/MaterialDialog.java

@@ -375,6 +375,7 @@ public class MaterialDialog extends DialogBase implements View.OnClickListener,
      * Detects whether or not the content TextView can be scrolled.
      */
     private boolean canContentScroll() {
+        if (listView != null) return true;
         final ScrollView scrollView = (ScrollView) view.findViewById(R.id.contentScrollView);
         final int childHeight = view.findViewById(R.id.content).getMeasuredHeight();
         return scrollView.getMeasuredHeight() < childHeight;

+ 1 - 1
sample/build.gradle

@@ -8,7 +8,7 @@ android {
         applicationId "com.afollestad.materialdialogssample"
         minSdkVersion 14
         targetSdkVersion 21
-        versionCode 35
+        versionCode 36
         versionName "0.3.2"
     }
     buildTypes {

BIN
sample/sample.apk