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 420b355303
commit 881b76836e

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;