Aidan Follestad 10 年之前
父節點
當前提交
efca644221
共有 3 個文件被更改,包括 2 次插入1 次删除
  1. 1 0
      library/src/main/java/com/afollestad/materialdialogs/MaterialDialog.java
  2. 1 1
      sample/build.gradle
  3. 二進制
      sample/sample.apk

+ 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 {

二進制
sample/sample.apk