Skip to content

Commit ce88fa8

Browse files
ish-joshihannesa2
authored andcommitted
fix: enable being detected by screenreader
1 parent 31db4a7 commit ce88fa8

1 file changed

Lines changed: 10 additions & 3 deletions

File tree

  • MPChartLib/src/main/java/com/github/mikephil/charting/charts

MPChartLib/src/main/java/com/github/mikephil/charting/charts/Chart.java

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -229,9 +229,11 @@ public void onAnimationUpdate(ValueAnimator animation) {
229229
mInfoPaint.setTextSize(Utils.convertDpToPixel(12f));
230230

231231
if (mLogEnabled) {
232-
Log.i("", "Chart.init()");
233-
}
234-
}
232+
Log.i("", "Chart.init()");
233+
234+
// enable being detected by ScreenReader
235+
setFocusable(true);
236+
}}
235237

236238
// public void initWithDummyData() {
237239
// ColorTemplate template = new ColorTemplate();
@@ -1649,4 +1651,9 @@ private void unbindDrawables(View view) {
16491651
public void setUnbindEnabled(boolean enabled) {
16501652
this.mUnbind = enabled;
16511653
}
1654+
1655+
// region accessibility
1656+
1657+
1658+
// endregion
16521659
}

0 commit comments

Comments
 (0)