瀏覽代碼

Fixed custom view inflate context

Aidan Follestad 10 年之前
父節點
當前提交
f2bb36d5b7
共有 1 個文件被更改,包括 1 次插入2 次删除
  1. 1 2
      library/src/main/java/com/afollestad/materialdialogs/MaterialDialog.java

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

@@ -812,8 +812,7 @@ public class MaterialDialog extends DialogBase implements
         }
 
         public Builder customView(@LayoutRes int layoutRes, boolean wrapInScrollView) {
-            final ContextThemeWrapper themedContext = DialogInit.getTheme(this);
-            LayoutInflater li = LayoutInflater.from(themedContext);
+            LayoutInflater li = LayoutInflater.from(this.context);
             return customView(li.inflate(layoutRes, null), wrapInScrollView);
         }