fix crash at exit + fix missing NewGlobalRef for LinphoneCall
This commit is contained in:
parent
75ef38d36f
commit
d25cee417d
2 changed files with 4 additions and 2 deletions
|
@ -246,7 +246,9 @@ public class LinphoneActivity extends TabActivity implements SensorEventListener
|
|||
if (rot != previousRotation) {
|
||||
Log.d("New device rotation: ", rot);
|
||||
// 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;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1 +1 @@
|
|||
Subproject commit 5633e4180369cba7f60862880c5e13630f89a437
|
||||
Subproject commit a2b943bfb7e66eee6c62d27db0185cb9a02d368e
|
Loading…
Reference in a new issue