Fix compile warnings (#881)
This commit is contained in:
@@ -92,6 +92,7 @@ public class MapView extends GLSurfaceView {
|
||||
this(context, null);
|
||||
}
|
||||
|
||||
@SuppressWarnings("deprecation")
|
||||
public MapView(Context context, AttributeSet attributeSet) {
|
||||
super(context, attributeSet);
|
||||
|
||||
|
||||
@@ -107,6 +107,9 @@ public final class AndroidGraphics extends CanvasAdapter {
|
||||
return new AndroidBitmap(bitmap);
|
||||
}
|
||||
|
||||
/**
|
||||
* @deprecated
|
||||
*/
|
||||
public static Bitmap drawableToBitmap(Resources res, int resId) {
|
||||
return drawableToBitmap(res.getDrawable(resId));
|
||||
}
|
||||
|
||||
@@ -35,12 +35,12 @@ package org.oscim.android.gl;
|
||||
|
||||
import android.annotation.SuppressLint;
|
||||
import android.opengl.GLES30;
|
||||
|
||||
import org.oscim.backend.GL30;
|
||||
|
||||
/**
|
||||
* See https://github.com/libgdx/libgdx/blob/master/backends/gdx-backend-android/src/com/badlogic/gdx/backends/android/AndroidGL30.java
|
||||
*/
|
||||
@SuppressWarnings("deprecation")
|
||||
@SuppressLint("NewApi")
|
||||
public class AndroidGL30 extends AndroidGL implements GL30 {
|
||||
@Override
|
||||
|
||||
Reference in New Issue
Block a user