Browse Source

Fixed custom view inflate context

Aidan Follestad 10 years ago
parent
commit
f2bb36d5b7

+ 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);
         }