mt6735 通话时用侧键调节音量最少为一格,触屏可调节到0格
时间:10-02
整理:3721RD
点击:
[DESCRIPTION]
通话时用侧键调节音量最少为一格,触屏可调节到0格(实际音效为1格)
[SOLUTION]
可按如下修改:
A.修改 AbsSeekBar.Java under php?mod=tag&id=6090" target="_blank" class="relatedlink">Frameworks
1.添加: private int Min;
2.
public AbsSeekBar(Context context) {
super(context);
Min=0; //added this line
}
public AbsSeekBar(Context context, AttributeSet attrs) {
super(context, attrs);
Min=0;//added this line
}
public AbsSeekBar(Context context, AttributeSet attrs, int defStyle) {
super(context, attrs, defStyle);
Min=0;//added this line
...............
}
3.添加方法:
public synchronized void setMin(int min) {
Min=min;
}
4.修改方法:
private void tracktouchEvent(MotionEvent event)和
public boolean onKeyDown(int keyCode, KeyEvent event)
在setProgress(......);
之前添加: if(progress<Min)progress=Min;
B. 修改 VolumePanel.java : createSliders()
在: sc.seekbarView.setOnSeekBarChangeListener(this);
之前添加:
if(sc.streamType == AudioManager.STREAM_VOICE_CALL || streamType == AudioSystem.STREAM_bluetooth_SCO)
sc.seekbarView.setMin(1);
通话时用侧键调节音量最少为一格,触屏可调节到0格(实际音效为1格)
[SOLUTION]
可按如下修改:
A.修改 AbsSeekBar.Java under php?mod=tag&id=6090" target="_blank" class="relatedlink">Frameworks
1.添加: private int Min;
2.
public AbsSeekBar(Context context) {
super(context);
Min=0; //added this line
}
public AbsSeekBar(Context context, AttributeSet attrs) {
super(context, attrs);
Min=0;//added this line
}
public AbsSeekBar(Context context, AttributeSet attrs, int defStyle) {
super(context, attrs, defStyle);
Min=0;//added this line
...............
}
3.添加方法:
public synchronized void setMin(int min) {
Min=min;
}
4.修改方法:
private void tracktouchEvent(MotionEvent event)和
public boolean onKeyDown(int keyCode, KeyEvent event)
在setProgress(......);
之前添加: if(progress<Min)progress=Min;
B. 修改 VolumePanel.java : createSliders()
在: sc.seekbarView.setOnSeekBarChangeListener(this);
之前添加:
if(sc.streamType == AudioManager.STREAM_VOICE_CALL || streamType == AudioSystem.STREAM_bluetooth_SCO)
sc.seekbarView.setMin(1);