Changed Java source file to use constant from API instead of just a String.

This commit is contained in:
Philipp Wiesemann 2013-04-27 14:26:15 +02:00
parent bdd9df5fd9
commit 423489e19d

View file

@ -482,7 +482,7 @@ class SDLSurface extends SurfaceView implements SurfaceHolder.Callback,
setOnKeyListener(this);
setOnTouchListener(this);
mSensorManager = (SensorManager)context.getSystemService("sensor");
mSensorManager = (SensorManager)context.getSystemService(Context.SENSOR_SERVICE);
// Some arbitrary defaults to avoid a potential division by zero
mWidth = 1.0f;