diff options
author | Brad Leege <bleege@gmail.com> | 2015-02-25 16:08:32 -0600 |
---|---|---|
committer | Brad Leege <bleege@gmail.com> | 2015-02-25 16:08:32 -0600 |
commit | 78f37879a3e83a16d95f1c0d3e50e15841987079 (patch) | |
tree | b51a96f3d7f3339472f3c34410084cfda63a62c9 /android | |
parent | 77cf66d91f9cefabb9f598c463def5ab35fb68cc (diff) | |
download | qtlocation-mapboxgl-78f37879a3e83a16d95f1c0d3e50e15841987079.tar.gz |
Use Build constants instead of integers
Diffstat (limited to 'android')
-rw-r--r-- | android/java/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxgl/lib/MapView.java | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/android/java/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxgl/lib/MapView.java b/android/java/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxgl/lib/MapView.java index d157cc07f8..4eeda79e80 100644 --- a/android/java/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxgl/lib/MapView.java +++ b/android/java/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxgl/lib/MapView.java @@ -10,6 +10,7 @@ import android.content.res.TypedArray; import android.graphics.PointF; import android.net.ConnectivityManager; import android.net.NetworkInfo; +import android.os.Build; import android.os.Bundle; import android.support.annotation.NonNull; import android.support.v4.view.GestureDetectorCompat; @@ -178,7 +179,7 @@ public class MapView extends SurfaceView { requestFocus(); // Register the SurfaceHolder callbacks - if (android.os.Build.VERSION.SDK_INT >= 9) { + if (android.os.Build.VERSION.SDK_INT >= Build.VERSION_CODES.GINGERBREAD) { getHolder().addCallback(new Callbacks2()); } else { getHolder().addCallback(new Callbacks()); |