Skip to content

Commit ae2c1b1

Browse files
authored
Merge pull request #32 from InsanusMokrassar/patch-1
UpdateLiveChart default attrs value to null
2 parents 56cf0ee + adc1bc4 commit ae2c1b1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

livechart/src/main/java/com/yabu/livechart/view/LiveChart.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ import com.yabu.livechart.utils.PublicApi
2222
* @param context
2323
* @param attrs
2424
*/
25-
class LiveChart(context: Context, attrs: AttributeSet?) : FrameLayout(context, attrs) {
25+
class LiveChart(context: Context, attrs: AttributeSet? = null) : FrameLayout(context, attrs) {
2626

2727
interface OnTouchCallback {
2828
fun onTouchCallback(point: DataPoint)
@@ -248,4 +248,4 @@ class LiveChart(context: Context, attrs: AttributeSet?) : FrameLayout(context, a
248248
overlay.bindToDataset()
249249
}
250250
}
251-
}
251+
}

0 commit comments

Comments
 (0)