mt6735 将手机设置为会议模式后,如何使按键、拨号盘按键都有震动
时间:10-02
整理:3721RD
点击:
[Audio Profile]将手机设置为会议模式后,如何使按键、拨号盘按键都有震动
[DESCRIPTION]
[设置]将手机设置为会议模式后,在拨号界面按键盘、锁屏、触摸手机时都没有振动
[SOLUTION]
在audioProfileService.java里如下更改:
1. 增加定义 public static final String KEY_ACTIVE_PROFILE_MEETING =
"mtk_audioprofile_meeting";
2. 修改 persistHapticFeedbackToSystem()
private void persistHapticFeedbackToSystem() {
String name = Settings.System.HAPTIC_FEEDBACK_ENABLED;
int enabled = getProfileState(mActiveProfileKey).mHapticFeedbackEnabled ? 1 : 0;
if(mActiveProfileKey.equals(KEY_ACTIVE_PROFILE_MEETING)) //add
enabled = 1; // add
Message msg = mAudioProfileHandler.obtainMessage(MSG_PERSIST_HAPTIC_FEEDBACK_TO_SYSTEM,
enabled, -1, name);
msg.sendToTarget();
}
[DESCRIPTION]
[设置]将手机设置为会议模式后,在拨号界面按键盘、锁屏、触摸手机时都没有振动
[SOLUTION]
在audioProfileService.java里如下更改:
1. 增加定义 public static final String KEY_ACTIVE_PROFILE_MEETING =
"mtk_audioprofile_meeting";
2. 修改 persistHapticFeedbackToSystem()
private void persistHapticFeedbackToSystem() {
String name = Settings.System.HAPTIC_FEEDBACK_ENABLED;
int enabled = getProfileState(mActiveProfileKey).mHapticFeedbackEnabled ? 1 : 0;
if(mActiveProfileKey.equals(KEY_ACTIVE_PROFILE_MEETING)) //add
enabled = 1; // add
Message msg = mAudioProfileHandler.obtainMessage(MSG_PERSIST_HAPTIC_FEEDBACK_TO_SYSTEM,
enabled, -1, name);
msg.sendToTarget();
}