@RequiresPermission(Manifest.permission.READ_PHONE_STATE) public void onContactInfoComplete(String callId, ContactCacheEntry entry) { DialerCall call = CallList.getInstance().getCallById(callId); if (call != null) { call.getLogState().contactLookupResult = entry.contactLookupResult; LogUtil.i( "StatusBarNotifier.onContactInfoComplete", "buildAndSendNotification 111"); buildAndSendNotification(CallList.getInstance(), call, entry); } }
时间: 2023-02-08 07:33:03 浏览: 255
这是一段Android程序代码。它声明了一个带有注解@RequiresPermission(Manifest.permission.READ_PHONE_STATE)的方法onContactInfoComplete(String callId, ContactCacheEntry entry)。这个方法在收到通话信息后完成联系人信息查找,并将查找结果存储到Call对象的LogState中,最后调用buildAndSendNotification(CallList.getInstance(), call, entry)来构建并发送通知。
阅读全文