Android CALL按键同步切换通话界面上免提和听筒的图标显示
按一下call按键,进行切换图标,分别显示为免提和听筒模式!
/frameworks/base/services/core/java/com/android/server/policy/PhoneWindowManager.java
case KeyEvent.KEYCODE_CALL: {
//*/ add custom key.
if("com.freeme.factory.input.KeyboardTest".equals(getCurrentActivityName())){
break;
} else if (getCurrentActivityName().contains("com.freeme.factory")) {
return 0;
}
//*/AudioManager mAudioManager = (AudioManager) mContext.getSystemService(Context.AUDIO_SERVICE);
TelecomManager telecomManager = getTelecommService();
if (telecomManager != null) {
if (telecomManager.isRin