@@ -79,7 +79,7 @@ public void setData(DataRow dataRow, int rowHeight, CellContentStyle cellContent
79
79
if (cell .imageUrl != null ) {
80
80
String svgTag = "data:image/svg+xml," ;
81
81
if (cell .imageUrl .startsWith (svgTag )) {
82
- loadSVG (cell , imageView );
82
+ loadSVG (cell , imageView , cellView );
83
83
} else {
84
84
Glide .with (cellView .getContext ()).asBitmap ().listener (new RequestListener <Bitmap >() {
85
85
@ Override
@@ -96,7 +96,7 @@ public boolean onResourceReady(Bitmap resource, Object model, Target<Bitmap> tar
96
96
}).load (cell .imageUrl ).into (imageView );
97
97
}
98
98
} else if (cell .qText != null ) {
99
- loadSVG (cell , imageView );
99
+ loadSVG (cell , imageView , cellView );
100
100
}
101
101
} else if (column .representation .type .equals ("miniChart" ) && !dataProvider .isDataView ) {
102
102
LinearLayout .LayoutParams cellViewLayoutParams = new LinearLayout .LayoutParams (column .width , ViewGroup .LayoutParams .MATCH_PARENT );
@@ -135,7 +135,7 @@ public boolean onResourceReady(Bitmap resource, Object model, Target<Bitmap> tar
135
135
}
136
136
}
137
137
138
- private void loadSVG (DataCell cell , ImageView imageView ) {
138
+ private void loadSVG (DataCell cell , ImageView imageView , CellView cellView ) {
139
139
String svgTag = "data:image/svg+xml," ;
140
140
if (cell .qText .startsWith (svgTag )) {
141
141
try {
@@ -148,7 +148,7 @@ private void loadSVG(DataCell cell, ImageView imageView) {
148
148
Log .e ("Image" , exception .getMessage ());
149
149
}
150
150
}else {
151
- Glide .with (cellView .getContext ()).load (cell .qText ).diskCacheStrategy ( diskCacheStrategy . DATA ). into (imageView );
151
+ Glide .with (cellView .getContext ()).load (cell .qText ).into (imageView );
152
152
}
153
153
}
154
154
0 commit comments