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

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