fix dtmf play issue
This commit is contained in:
parent
9cf418d209
commit
638ca6a066
5 changed files with 4 additions and 4 deletions
Binary file not shown.
Binary file not shown.
|
@ -558,12 +558,12 @@ public class DialerActivity extends Activity implements LinphoneCoreListener {
|
|||
}
|
||||
}
|
||||
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();
|
||||
lc.playDtmf(mKeyCode.charAt(0), -1);
|
||||
mIsDtmfStarted=true;
|
||||
} else {
|
||||
if (!v.isPressed())
|
||||
if (event.getAction() == MotionEvent.ACTION_UP)
|
||||
stopDtmf();
|
||||
}
|
||||
return false;
|
||||
|
|
|
@ -364,7 +364,7 @@ public class LinphoneService extends Service implements LinphoneCoreListener {
|
|||
if (lDefaultProxyConfig !=null) {
|
||||
//prefix
|
||||
String lPrefix = mPref.getString(getString(R.string.pref_prefix_key), null);
|
||||
if (lPrefix != null && lPrefix.length()>0) {
|
||||
if (lPrefix != null) {
|
||||
lDefaultProxyConfig.setDialPrefix(lPrefix);
|
||||
}
|
||||
//escape +
|
||||
|
|
|
@ -1 +1 @@
|
|||
Subproject commit 8210107a35463f30894027ad271ee0f66d79cb00
|
||||
Subproject commit 176616e0fb7f02dd27469b44510428e7140a0461
|
Loading…
Reference in a new issue