summaryrefslogtreecommitdiff
path: root/java/com/android/dialer/util
diff options
context:
space:
mode:
authoruabdullah <uabdullah@google.com>2018-02-02 09:27:24 -0800
committerCopybara-Service <copybara-piper@google.com>2018-02-02 09:28:38 -0800
commit1dd1da30d2f9553ad8cada14a431904ed39aec9c (patch)
treecca55025a280fb3c10ef3038313bbb82b81ec6df /java/com/android/dialer/util
parent1fe9bec25a26587f792202358f14f3ca5b575cf7 (diff)
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
Diffstat (limited to 'java/com/android/dialer/util')
-rw-r--r--java/com/android/dialer/util/PermissionsUtil.java2
1 files changed, 2 insertions, 0 deletions
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,