Skip to content

Commit 7f46044

Browse files
committed
We don't clone the first instance, for cases where factories might not be set. (top level inflater)
1 parent 4ab420c commit 7f46044

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

calligraphy/src/main/java/uk/co/chrisjenx/calligraphy/CalligraphyContextWrapper.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ public CalligraphyContextWrapper(Context base, int attributeId) {
108108
public Object getSystemService(String name) {
109109
if (LAYOUT_INFLATER_SERVICE.equals(name)) {
110110
if (mInflater == null) {
111-
mInflater = new CalligraphyLayoutInflater(LayoutInflater.from(getBaseContext()), this, mAttributeId, true);
111+
mInflater = new CalligraphyLayoutInflater(LayoutInflater.from(getBaseContext()), this, mAttributeId, false);
112112
}
113113
return mInflater;
114114
}

0 commit comments

Comments
 (0)