Skip to content

Commit fc3decc

Browse files
committed
Add target API annotation
1 parent 81eb08f commit fc3decc

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

MPChartLib/src/com/github/mikephil/charting/charts/BarLineChartBase.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
package com.github.mikephil.charting.charts;
33

44
import android.annotation.SuppressLint;
5+
import android.annotation.TargetApi;
56
import android.content.Context;
67
import android.graphics.Canvas;
78
import android.graphics.Color;
@@ -734,6 +735,7 @@ public void zoom(float scaleX, float scaleY, float xValue, float yValue, AxisDep
734735
* @param axis
735736
* @param duration
736737
*/
738+
@TargetApi(11)
737739
public void zoomAndCenterAnimated(float scaleX, float scaleY, float xValue, float yValue, AxisDependency axis, long duration) {
738740

739741
if (android.os.Build.VERSION.SDK_INT >= 11) {
@@ -886,6 +888,7 @@ public void moveViewTo(float xIndex, float yValue, AxisDependency axis) {
886888
* @param axis
887889
* @param duration the duration of the animation in milliseconds
888890
*/
891+
@TargetApi(11)
889892
public void moveViewToAnimated(float xIndex, float yValue, AxisDependency axis, long duration) {
890893

891894
if (android.os.Build.VERSION.SDK_INT >= 11) {
@@ -933,6 +936,7 @@ public void centerViewTo(float xIndex, float yValue, AxisDependency axis) {
933936
* @param axis
934937
* @param duration the duration of the animation in milliseconds
935938
*/
939+
@TargetApi(11)
936940
public void centerViewToAnimated(float xIndex, float yValue, AxisDependency axis, long duration) {
937941

938942
if (android.os.Build.VERSION.SDK_INT >= 11) {

0 commit comments

Comments
 (0)