diff options
author | Android (Google) Code Review <android-gerrit@google.com> | 2009-04-28 13:19:23 -0700 |
---|---|---|
committer | Android (Google) Code Review <android-gerrit@google.com> | 2009-04-28 13:19:23 -0700 |
commit | e4de845ec2ad14538a437ca31f56948547b2d5c0 (patch) | |
tree | 2bd6fba2a901cf2af2b10899c48d0c3853593068 | |
parent | 6fcddb05eee19edfd3063b9eefbdb0de0dbd4f4f (diff) | |
parent | 287b30920102b5466efa53a2f17ed69f2c776c16 (diff) | |
download | frameworks_base-e4de845ec2ad14538a437ca31f56948547b2d5c0.zip frameworks_base-e4de845ec2ad14538a437ca31f56948547b2d5c0.tar.gz frameworks_base-e4de845ec2ad14538a437ca31f56948547b2d5c0.tar.bz2 |
Merge change 625 into donut
* changes:
fix 1812272 SensorManager method returns hidden object
-rw-r--r-- | core/java/android/hardware/SensorManager.java | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/core/java/android/hardware/SensorManager.java b/core/java/android/hardware/SensorManager.java index 0c88a2e..67df23b 100644 --- a/core/java/android/hardware/SensorManager.java +++ b/core/java/android/hardware/SensorManager.java @@ -43,7 +43,7 @@ import java.util.List; * class by calling {@link android.content.Context#getSystemService(java.lang.String) * Context.getSystemService()} with an argument of {@link android.content.Context#SENSOR_SERVICE}. */ -public class SensorManager extends IRotationWatcher.Stub +public class SensorManager { private static final String TAG = "SensorManager"; private static final float[] mTempMatrix = new float[16]; @@ -475,7 +475,13 @@ public class SensorManager extends IRotationWatcher.Stub // if it's null we're running in the system process // which won't get the rotated values try { - sRotation = sWindowManager.watchRotation(this); + sRotation = sWindowManager.watchRotation( + new IRotationWatcher.Stub() { + public void onRotationChanged(int rotation) { + SensorManager.this.onRotationChanged(rotation); + } + } + ); } catch (RemoteException e) { } } @@ -1386,7 +1392,7 @@ public class SensorManager extends IRotationWatcher.Stub } } } - + class LmsFilter { private static final int SENSORS_RATE_MS = 20; private static final int COUNT = 12; @@ -1454,7 +1460,7 @@ public class SensorManager extends IRotationWatcher.Stub } } - + private static native void nativeClassInit(); private static native int sensors_module_init(); |