Removed log to fix crash because library not loaded
This commit is contained in:
parent
e0140592ba
commit
4473782f86
1 changed files with 0 additions and 10 deletions
|
@ -18,8 +18,6 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||||
*/
|
*/
|
||||||
package org.linphone;
|
package org.linphone;
|
||||||
|
|
||||||
import org.linphone.mediastream.Log;
|
|
||||||
|
|
||||||
import android.content.BroadcastReceiver;
|
import android.content.BroadcastReceiver;
|
||||||
import android.content.Context;
|
import android.content.Context;
|
||||||
import android.content.Intent;
|
import android.content.Intent;
|
||||||
|
@ -32,26 +30,18 @@ import android.telephony.TelephonyManager;
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
public class PhoneStateChangedReceiver extends BroadcastReceiver {
|
public class PhoneStateChangedReceiver extends BroadcastReceiver {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void onReceive(Context context, Intent intent) {
|
public void onReceive(Context context, Intent intent) {
|
||||||
|
|
||||||
|
|
||||||
final String extraState = intent.getStringExtra(TelephonyManager.EXTRA_STATE);
|
final String extraState = intent.getStringExtra(TelephonyManager.EXTRA_STATE);
|
||||||
|
|
||||||
if (TelephonyManager.EXTRA_STATE_RINGING.equals(extraState) || TelephonyManager.EXTRA_STATE_OFFHOOK.equals(extraState)) {
|
if (TelephonyManager.EXTRA_STATE_RINGING.equals(extraState) || TelephonyManager.EXTRA_STATE_OFFHOOK.equals(extraState)) {
|
||||||
LinphoneManager.setGsmIdle(false);
|
LinphoneManager.setGsmIdle(false);
|
||||||
if (!LinphoneManager.isInstanciated()) {
|
if (!LinphoneManager.isInstanciated()) {
|
||||||
Log.i("GSM call state changed but manager not instantiated");
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
LinphoneManager.getLc().pauseAllCalls();
|
LinphoneManager.getLc().pauseAllCalls();
|
||||||
} else if (TelephonyManager.EXTRA_STATE_IDLE.equals(extraState)) {
|
} else if (TelephonyManager.EXTRA_STATE_IDLE.equals(extraState)) {
|
||||||
LinphoneManager.setGsmIdle(true);
|
LinphoneManager.setGsmIdle(true);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
// do nothing
|
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue