fix dtmf play issue

This commit is contained in:
Jehan Monnier 2010-09-24 12:03:29 +02:00
parent 9cf418d209
commit 638ca6a066
5 changed files with 4 additions and 4 deletions

Binary file not shown.

Binary file not shown.

View file

@ -558,12 +558,12 @@ public class DialerActivity extends Activity implements LinphoneCoreListener {
} }
} }
public boolean onTouch(View v, MotionEvent event) { public boolean onTouch(View v, MotionEvent event) {
if (v.isPressed() && mIsDtmfStarted ==false) { if (event.getAction() == MotionEvent.ACTION_DOWN && mIsDtmfStarted ==false) {
LinphoneCore lc = LinphoneService.instance().getLinphoneCore(); LinphoneCore lc = LinphoneService.instance().getLinphoneCore();
lc.playDtmf(mKeyCode.charAt(0), -1); lc.playDtmf(mKeyCode.charAt(0), -1);
mIsDtmfStarted=true; mIsDtmfStarted=true;
} else { } else {
if (!v.isPressed()) if (event.getAction() == MotionEvent.ACTION_UP)
stopDtmf(); stopDtmf();
} }
return false; return false;

View file

@ -364,7 +364,7 @@ public class LinphoneService extends Service implements LinphoneCoreListener {
if (lDefaultProxyConfig !=null) { if (lDefaultProxyConfig !=null) {
//prefix //prefix
String lPrefix = mPref.getString(getString(R.string.pref_prefix_key), null); String lPrefix = mPref.getString(getString(R.string.pref_prefix_key), null);
if (lPrefix != null && lPrefix.length()>0) { if (lPrefix != null) {
lDefaultProxyConfig.setDialPrefix(lPrefix); lDefaultProxyConfig.setDialPrefix(lPrefix);
} }
//escape + //escape +

@ -1 +1 @@
Subproject commit 8210107a35463f30894027ad271ee0f66d79cb00 Subproject commit 176616e0fb7f02dd27469b44510428e7140a0461