Skip to content
This repository has been archived by the owner on Feb 11, 2021. It is now read-only.

Commit

Permalink
Changed Java source file to use constant from API instead of just a S…
Browse files Browse the repository at this point in the history
…tring.
  • Loading branch information
philippwiesemann committed Apr 27, 2013
1 parent 9f0d1e2 commit 7e59184
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion android-project/src/org/libsdl/app/SDLActivity.java
Expand Up @@ -482,7 +482,7 @@ public SDLSurface(Context context) {
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;
Expand Down

0 comments on commit 7e59184

Please sign in to comment.