CallLog: Get rid of warning
* ContextImpl: Calling a method in the system process
without a qualified user
Change-Id: Ibc44e240c5f8d9290d53d0ee009120e5b34152bf
diff --git a/src/com/android/server/telecom/CallLogManager.java b/src/com/android/server/telecom/CallLogManager.java
index 0ec2362..4280f74 100755
--- a/src/com/android/server/telecom/CallLogManager.java
+++ b/src/com/android/server/telecom/CallLogManager.java
@@ -552,7 +552,8 @@
Intent callAddIntent = new Intent(ACTION_CALLS_TABLE_ADD_ENTRY);
callAddIntent.putExtra(CALL_TYPE, callType);
callAddIntent.putExtra(CALL_DURATION, duration);
- mContext.sendBroadcast(callAddIntent, PERMISSION_PROCESS_CALLLOG_INFO);
+ mContext.sendBroadcastAsUser(callAddIntent, UserHandle.SYSTEM,
+ PERMISSION_PROCESS_CALLLOG_INFO);
}
private String getCountryIsoFromCountry(Country country) {