Cleanup
This commit is contained in:
parent
94a67ccea0
commit
360cc24b97
4 changed files with 3 additions and 5 deletions
|
@ -259,6 +259,7 @@ public class BarChartActivity extends DemoBase implements OnSeekBarChangeListene
|
|||
}
|
||||
|
||||
protected RectF mOnValueSelectedRectF = new RectF();
|
||||
|
||||
@SuppressLint("NewApi")
|
||||
@Override
|
||||
public void onValueSelected(Entry e, Highlight h) {
|
||||
|
|
|
@ -53,9 +53,7 @@ public class DefaultValueFormatter implements ValueFormatter {
|
|||
|
||||
@Override
|
||||
public String getFormattedValue(float value, Entry entry, int dataSetIndex, ViewPortHandler viewPortHandler) {
|
||||
|
||||
return mFormattedStringCache.getFormattedValue(value, dataSetIndex);
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
@ -21,7 +21,6 @@ public class StackedValueFormatter implements ValueFormatter {
|
|||
private FormattedStringCache.Generic mFormattedStringCacheWholeStack;
|
||||
private FormattedStringCache.Generic mFormattedStringCache;
|
||||
|
||||
|
||||
/**
|
||||
* a string that should be appended behind the value
|
||||
*/
|
||||
|
@ -57,6 +56,7 @@ public class StackedValueFormatter implements ValueFormatter {
|
|||
FormattedStringCache.Generic chosenCache = mFormattedStringCache;
|
||||
int chosenIndex = dataSetIndex;
|
||||
float chosenValue = value;
|
||||
|
||||
if (!mDrawWholeStack && entry instanceof BarEntry) {
|
||||
|
||||
BarEntry barEntry = (BarEntry) entry;
|
||||
|
|
|
@ -1,6 +1,5 @@
|
|||
package com.github.mikephil.charting.jobs;
|
||||
|
||||
import android.animation.ObjectAnimator;
|
||||
import android.animation.ValueAnimator;
|
||||
import android.annotation.SuppressLint;
|
||||
import android.view.View;
|
||||
|
@ -31,7 +30,7 @@ public class AnimatedMoveViewJob extends AnimatedViewPortJob {
|
|||
result.view = v;
|
||||
result.xOrigin = xOrigin;
|
||||
result.yOrigin = yOrigin;
|
||||
result.resetAnimator();
|
||||
//result.resetAnimator();
|
||||
result.animator.setDuration(duration);
|
||||
return result;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue