fix armv5 execution

This commit is contained in:
Simon Morlat 2011-09-21 16:51:26 +02:00
parent c3b0980493
commit 6d343cfc82
2 changed files with 4 additions and 3 deletions

View file

@ -292,9 +292,10 @@ public class LinphoneActivity extends TabActivity implements SensorEventListener
} }
public void onSensorChanged(SensorEvent event) { public void onSensorChanged(SensorEvent event) {
if (event==null || event.sensor == mAccelerometer) { if (event==null || event.sensor == mAccelerometer) {
// WARNING : getRotation() is SDK > 5 int rot;
int rot = AndroidVideoWindowImpl.rotationToAngle(getWindowManager().getDefaultDisplay().getRotation());
rot=getWindowManager().getDefaultDisplay().getOrientation();
if (rot != previousRotation) { if (rot != previousRotation) {
Log.d("New device rotation: ", rot); Log.d("New device rotation: ", rot);
// Returning rotation FROM ITS NATURAL ORIENTATION // Returning rotation FROM ITS NATURAL ORIENTATION

@ -1 +1 @@
Subproject commit 51ee80ec2b0ce934e44c73ad4931ca98a6798fa8 Subproject commit ef7dc050f57967cb63a0b2e6a8d294ca504816b8