From 1dd1da30d2f9553ad8cada14a431904ed39aec9c Mon Sep 17 00:00:00 2001 From: uabdullah Date: Fri, 2 Feb 2018 09:27:24 -0800 Subject: Refresh annotated call log from the voicemail tab This CL copies the code dealing with refreshing the annotated call log from the NewCallLogFragment and applies it to the NewVoicemailFragment. This is necessary since the NewVoicemailFragment should be able to refresh the annotated call log without depending on the user going to the call log fragment for the update. The only thing we don't copy over is the logic and handling when the CP2 info is incomplete for a number (INVALID number), however we do not expect any invalid numbers for voicemail and as such have added an assert for that. Bug: 72523272 Test: Unit Tests PiperOrigin-RevId: 184292549 Change-Id: I2994974fe60221a4854fed5f9d80d3d428449ae9 --- java/com/android/dialer/util/PermissionsUtil.java | 2 ++ 1 file changed, 2 insertions(+) (limited to 'java/com/android/dialer/util') diff --git a/java/com/android/dialer/util/PermissionsUtil.java b/java/com/android/dialer/util/PermissionsUtil.java index 6684f954b..09c2b7f42 100644 --- a/java/com/android/dialer/util/PermissionsUtil.java +++ b/java/com/android/dialer/util/PermissionsUtil.java @@ -25,6 +25,7 @@ import static android.Manifest.permission.READ_CALL_LOG; import static android.Manifest.permission.READ_CONTACTS; import static android.Manifest.permission.READ_PHONE_STATE; import static android.Manifest.permission.READ_VOICEMAIL; +import static android.Manifest.permission.SEND_SMS; import static android.Manifest.permission.WRITE_CALL_LOG; import static android.Manifest.permission.WRITE_CONTACTS; import static android.Manifest.permission.WRITE_VOICEMAIL; @@ -66,6 +67,7 @@ public class PermissionsUtil { WRITE_CALL_LOG, READ_PHONE_STATE, MODIFY_PHONE_STATE, + SEND_SMS, CALL_PHONE, ADD_VOICEMAIL, WRITE_VOICEMAIL, -- cgit v1.2.3