removed the enabling of sensors hedgeroid
authorXeli
Sun, 21 Aug 2011 22:18:54 +0200
branchhedgeroid
changeset 5641 06558ee35f51
parent 5639 ebe9858eb6a3
child 5644 4ad07103cfae
removed the enabling of sensors
project_files/Android-build/SDL-android-project/src/org/hedgewars/mobile/SDLActivity.java
--- a/project_files/Android-build/SDL-android-project/src/org/hedgewars/mobile/SDLActivity.java	Sun Aug 21 22:17:40 2011 +0200
+++ b/project_files/Android-build/SDL-android-project/src/org/hedgewars/mobile/SDLActivity.java	Sun Aug 21 22:18:54 2011 +0200
@@ -329,14 +329,14 @@
 
 	// Called when we have a valid drawing surface
 	public void surfaceCreated(SurfaceHolder holder) {
-		// Log.v("SDL", "surfaceCreated()");
+		Log.v("SDL", "surfaceCreated()");
 
-		enableSensor(Sensor.TYPE_ACCELEROMETER, true);
+		//enableSensor(Sensor.TYPE_ACCELEROMETER, true);
 	}
 
 	// Called when we lose the surface
 	public void surfaceDestroyed(SurfaceHolder holder) {
-		// Log.v("SDL", "surfaceDestroyed()");
+		Log.v("SDL", "surfaceDestroyed()");
 
 		// Send a quit message to the application
 		SDLActivity.nativeQuit();
@@ -353,7 +353,7 @@
 			// Log.v("SDL", "Finished waiting for SDL thread");
 		}
 
-		enableSensor(Sensor.TYPE_ACCELEROMETER, false);
+		//enableSensor(Sensor.TYPE_ACCELEROMETER, false);
 	}
 
 	// Called when the surface is resized