Skip to content

Commit 3721eaa

Browse files
committed
Remove a obsolete version check
1 parent ece65e0 commit 3721eaa

File tree

1 file changed

+1
-6
lines changed
  • MPChartLib/src/main/java/com/github/mikephil/charting/components

1 file changed

+1
-6
lines changed

MPChartLib/src/main/java/com/github/mikephil/charting/components/MarkerImage.kt

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ import android.content.Context
44
import android.graphics.Canvas
55
import android.graphics.Rect
66
import android.graphics.drawable.Drawable
7-
import android.os.Build
87
import com.github.mikephil.charting.charts.Chart
98
import com.github.mikephil.charting.data.Entry
109
import com.github.mikephil.charting.highlight.Highlight
@@ -32,11 +31,7 @@ class MarkerImage(private var mContext: Context, drawableResourceId: Int) : IMar
3231
* @param drawableResourceId the drawable resource to render
3332
*/
3433
init {
35-
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP) {
36-
drawable = mContext.resources.getDrawable(drawableResourceId, null)
37-
} else {
38-
drawable = mContext.resources.getDrawable(drawableResourceId)
39-
}
34+
drawable = mContext.resources.getDrawable(drawableResourceId, null)
4035
}
4136

4237
fun setOffset(offsetX: Float, offsetY: Float) {

0 commit comments

Comments
 (0)