mt6735 按住音量调节进度条,此时来电,来电铃声和音量预览音会重...
时间:10-02
整理:3721RD
点击:
[Audio Profile]按住音量调节进度条,此时来电,来电铃声和音量预览音会重叠,如何避免?
[DESCRIPTION]
按住音量调节进度条,此时来电,来电铃声和音量预览音会重叠,如何避免?
[SOLUTION]
请将packages\apps\Settings\src\com\mediatek\audioprofile\RingerVolumePreference.java这
个文件修改如下:
1. import android.media.AudioSystem
2. 按照下面修改sample()
private void sample() {
onSampleStarting(this);
Xlog.d(TAG, "sample, set system Volume " + mLastProgress);
if (mRingtone != null) {
Xlog.d(TAG, "stream type " + mStreamType + " play sample");
// start modify ring
if(false == AudioSystem.isStreamActive(AudioSystem.STREAM_RING, 0)){
mRingtone.play();
}else if(mRingtone.isPlaying()){
mRingtone.stop();
}
//mRingtone.play();
// end modify ring
}
}
[DESCRIPTION]
按住音量调节进度条,此时来电,来电铃声和音量预览音会重叠,如何避免?
[SOLUTION]
请将packages\apps\Settings\src\com\mediatek\audioprofile\RingerVolumePreference.java这
个文件修改如下:
1. import android.media.AudioSystem
2. 按照下面修改sample()
private void sample() {
onSampleStarting(this);
Xlog.d(TAG, "sample, set system Volume " + mLastProgress);
if (mRingtone != null) {
Xlog.d(TAG, "stream type " + mStreamType + " play sample");
// start modify ring
if(false == AudioSystem.isStreamActive(AudioSystem.STREAM_RING, 0)){
mRingtone.play();
}else if(mRingtone.isPlaying()){
mRingtone.stop();
}
//mRingtone.play();
// end modify ring
}
}