Changed Java source file to use constant from API instead of just a String.
This commit is contained in:
parent
bdd9df5fd9
commit
423489e19d
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue