微波EDA网,见证研发工程师的成长!
首页 > 研发问答 > 手机设计讨论 > MTK手机平台交流 > 通话界面未指明通话的卡1或者卡资讯

通话界面未指明通话的卡1或者卡资讯

时间:10-02 整理:3721RD 点击:
[DESCRIPTION]
联通入库有反馈,双卡呼出电话,界面没有文字指明卡1和卡2资讯
[SOLUTION]
please find the
alps/packages/apps/InCallUI/src/com/android/incallui/CallCardPresenter.java
There is a getCallProviderLabel() method.
in this method, you can retrieve slotId in the following way:
int subId = call.getSubId();
if (subId != Call.INVALID_SUB_ID) {
int slotId = SubscriptionManager.getSlotId(subId);
}
Since you've got the slotId, you can SIMply append it in the
"account.getLabel().toString()" of the same method.
you can customize the label like:
"Call via CU(SIM 1):"

Copyright © 2017-2020 微波EDA网 版权所有

网站地图

Top