소스 검색

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