fix crash at exit + fix missing NewGlobalRef for LinphoneCall

This commit is contained in:
Simon Morlat 2011-09-22 17:53:59 +02:00
parent 75ef38d36f
commit d25cee417d
2 changed files with 4 additions and 2 deletions

View file

@ -246,7 +246,9 @@ public class LinphoneActivity extends TabActivity implements SensorEventListener
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
LinphoneManager.getLc().setDeviceRotation(rot); LinphoneCore lc=LinphoneManager.getLcIfManagerNotDestroyedOrNull();
if (lc!=null) lc.setDeviceRotation(rot);
//else ignore, we are probably exiting.
previousRotation = rot; previousRotation = rot;
} }
} }

@ -1 +1 @@
Subproject commit 5633e4180369cba7f60862880c5e13630f89a437 Subproject commit a2b943bfb7e66eee6c62d27db0185cb9a02d368e