The bar chart will scroll and show the transaction name/category to me.
Actual behaviour
The app crashed.
Software specifications
GnuCash Android version: 2.4.0
System Android version: LineageOS 15.1 for cheeseburger.
Device type: ONEPLUS 5
I have dig into the crash log, and found that this is a bug of MPAndroidChart. The method getClosestStackIndex of com.github.mikephil.charting.highlight.BarHighlighter.java in MPAndroidChart with version v2.1.3, doesn't process the occasion that the length of input parameter range is 0. And then I viewed the current code in MPAndroidChart, and found they have fixed this bug two years ago. Maybe upgrade MPAndroidChart can fix this bug.
Oh, upgrading dependency directly will cause building error, because of the API changing.
Steps to reproduce the behaviour
Expected behaviour
The bar chart will scroll and show the transaction name/category to me.
Actual behaviour
The app crashed.
Software specifications
I have dig into the crash log, and found that this is a bug of
MPAndroidChart
. The methodgetClosestStackIndex
ofcom.github.mikephil.charting.highlight.BarHighlighter.java
inMPAndroidChart
with versionv2.1.3
, doesn't process the occasion that the length of input parameterrange
is0
. And then I viewed the current code inMPAndroidChart
, and found they have fixed this bug two years ago. Maybe upgradeMPAndroidChart
can fix this bug.Oh, upgrading dependency directly will cause building error, because of the API changing.
Thanks.