Merge branch 'master' of git.linphone.org:linphone-android
Conflicts: submodules/linphone
This commit is contained in:
commit
cf47af9385
3 changed files with 20 additions and 1 deletions
|
@ -276,6 +276,18 @@ public class LinphoneActivity extends TabActivity implements SensorEventListener
|
||||||
menu.findItem(R.id.menu_about).setVisible(useMenuAbout);
|
menu.findItem(R.id.menu_about).setVisible(useMenuAbout);
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public boolean onPrepareOptionsMenu(Menu menu) {
|
||||||
|
LinphoneCore lc = LinphoneManager.getLcIfManagerNotDestroyedOrNull();
|
||||||
|
if (lc == null)
|
||||||
|
return true;
|
||||||
|
// hide settings menu when in call
|
||||||
|
// otherwise, exiting the 'setting' menu will cause exosip deletion/recreation...
|
||||||
|
menu.findItem(R.id.menu_settings).setVisible(!lc.isIncall());
|
||||||
|
|
||||||
|
return super.onPrepareOptionsMenu(menu);
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public boolean onOptionsItemSelected(MenuItem item) {
|
public boolean onOptionsItemSelected(MenuItem item) {
|
||||||
|
|
|
@ -32,6 +32,7 @@ import java.util.Arrays;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
import org.linphone.LinphoneManager.EcCalibrationListener;
|
import org.linphone.LinphoneManager.EcCalibrationListener;
|
||||||
|
import org.linphone.core.LinphoneCore;
|
||||||
import org.linphone.core.LinphoneCoreException;
|
import org.linphone.core.LinphoneCoreException;
|
||||||
import org.linphone.core.Log;
|
import org.linphone.core.Log;
|
||||||
import org.linphone.core.LinphoneCore.EcCalibratorStatus;
|
import org.linphone.core.LinphoneCore.EcCalibratorStatus;
|
||||||
|
@ -229,6 +230,12 @@ public class LinphonePreferencesActivity extends PreferenceActivity implements E
|
||||||
|
|
||||||
if (!isFinishing()) return;
|
if (!isFinishing()) return;
|
||||||
|
|
||||||
|
LinphoneCore lc = LinphoneManager.getLcIfManagerNotDestroyedOrNull();
|
||||||
|
|
||||||
|
if (lc != null && (lc.isInComingInvitePending() || lc.isIncall())) {
|
||||||
|
Log.w("Call in progress => settings not applied");
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
try {
|
try {
|
||||||
LinphoneManager.getInstance().initFromConf(getApplicationContext());
|
LinphoneManager.getInstance().initFromConf(getApplicationContext());
|
||||||
|
|
|
@ -1 +1 @@
|
||||||
Subproject commit 2e10820e9c32fe75f049308d69e4164b46bc0d1a
|
Subproject commit b78cec7a59e04aff2a9884feed11addb9000b0ba
|
Loading…
Reference in a new issue