From 090c66de862a6773b6e2bfb50d8bef06e7a8a52e Mon Sep 17 00:00:00 2001 From: calderwoodra Date: Tue, 10 Oct 2017 12:55:30 -0700 Subject: Remove period from location request string. Bug: 67635072 Test: n/a PiperOrigin-RevId: 171720799 Change-Id: Ie64f7daa071986b23653876172011d4f2343fc69 --- .../android/dialer/searchfragment/nearbyplaces/res/values/strings.xml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/java/com/android/dialer/searchfragment/nearbyplaces/res/values/strings.xml b/java/com/android/dialer/searchfragment/nearbyplaces/res/values/strings.xml index 31bc31751..7fb38f6b2 100644 --- a/java/com/android/dialer/searchfragment/nearbyplaces/res/values/strings.xml +++ b/java/com/android/dialer/searchfragment/nearbyplaces/res/values/strings.xml @@ -19,11 +19,11 @@ Nearby places - To get contact information for places near you, allow access to your location. + To get contact information for places near you, allow access to your location Allow Dismiss - \ No newline at end of file + -- cgit v1.2.3 From 4aaaca7ad2b570b43f3446abe6b0b96194d441c3 Mon Sep 17 00:00:00 2001 From: twyen Date: Tue, 10 Oct 2017 13:39:17 -0700 Subject: Ignore self-manged calls for missed call notification If a PhoneAccount declared it is CAPABILITY_SELF_MANAGED, it should handle the in call UI and notifications itself, but might still write to call log with EXTRA_LOG_SELF_MANAGED_CALLS}. Bug: 66946794 Test: MissedCallNotifierTest PiperOrigin-RevId: 171727177 Change-Id: I34444857d432d6bb72983c0ba919bcfef885192b --- .../dialer/app/calllog/MissedCallNotifier.java | 40 ++++++++++++++++++++++ 1 file changed, 40 insertions(+) diff --git a/java/com/android/dialer/app/calllog/MissedCallNotifier.java b/java/com/android/dialer/app/calllog/MissedCallNotifier.java index eb7fab8fc..8a986dc41 100644 --- a/java/com/android/dialer/app/calllog/MissedCallNotifier.java +++ b/java/com/android/dialer/app/calllog/MissedCallNotifier.java @@ -18,6 +18,7 @@ package com.android.dialer.app.calllog; import android.app.Notification; import android.app.Notification.Builder; import android.app.PendingIntent; +import android.content.ComponentName; import android.content.Context; import android.content.Intent; import android.graphics.Bitmap; @@ -32,6 +33,9 @@ import android.support.annotation.WorkerThread; import android.support.v4.os.BuildCompat; import android.support.v4.os.UserManagerCompat; import android.support.v4.util.Pair; +import android.telecom.PhoneAccount; +import android.telecom.PhoneAccountHandle; +import android.telecom.TelecomManager; import android.text.BidiFormatter; import android.text.TextDirectionHeuristics; import android.text.TextUtils; @@ -57,6 +61,7 @@ import com.android.dialer.phonenumbercache.ContactInfo; import com.android.dialer.phonenumberutil.PhoneNumberHelper; import com.android.dialer.util.DialerUtils; import com.android.dialer.util.IntentUtil; +import java.util.Iterator; import java.util.List; import java.util.Set; @@ -113,6 +118,8 @@ public class MissedCallNotifier implements Worker, Void> { List newCalls = callLogNotificationsQueryHelper.getNewMissedCalls(); + removeSelfManagedCalls(newCalls); + if ((newCalls != null && newCalls.isEmpty()) || count == 0) { // No calls to notify about: clear the notification. CallLogNotificationsQueryHelper.markAllMissedCallsInCallLogAsRead(context); @@ -236,6 +243,39 @@ public class MissedCallNotifier implements Worker, Void> { } } + /** + * Remove self-managed calls from {@code newCalls}. If a {@link PhoneAccount} declared it is + * {@link PhoneAccount#CAPABILITY_SELF_MANAGED}, it should handle the in call UI and notifications + * itself, but might still write to call log with {@link + * PhoneAccount#EXTRA_LOG_SELF_MANAGED_CALLS}. + */ + private void removeSelfManagedCalls(@Nullable List newCalls) { + if (newCalls == null) { + return; + } + TelecomManager telecomManager = context.getSystemService(TelecomManager.class); + Iterator iterator = newCalls.iterator(); + while (iterator.hasNext()) { + NewCall call = iterator.next(); + if (call.accountComponentName == null || call.accountId == null) { + continue; + } + PhoneAccountHandle phoneAccountHandle = + new PhoneAccountHandle( + ComponentName.unflattenFromString(call.accountComponentName), call.accountId); + PhoneAccount phoneAccount = telecomManager.getPhoneAccount(phoneAccountHandle); + if (phoneAccount == null) { + continue; + } + if (phoneAccount.hasCapabilities(PhoneAccount.CAPABILITY_SELF_MANAGED)) { + LogUtil.i( + "MissedCallNotifier.removeSelfManagedCalls", + "ignoring self-managed call " + call.callsUri); + iterator.remove(); + } + } + } + public static void cancelAllMissedCallNotifications(@NonNull Context context) { NotificationManagerUtils.cancelAllInGroup(context, GROUP_KEY); } -- cgit v1.2.3 From 93c6f9b86e531d22d6598dcd310a0b89024d5ecc Mon Sep 17 00:00:00 2001 From: mdooley Date: Tue, 10 Oct 2017 17:10:59 -0700 Subject: Change voicemail transcription progress string screenshot: https://drive.google.com/open?id=0B9o_KvtLkcuIdVZ2dE44MzNUZ2pkdUY5ZVdycHp0R1ZsLUtZ Bug: 67634990 Test: manual PiperOrigin-RevId: 171757382 Change-Id: If11b88a0682e5da9454238fa19fb78972115fb23 --- java/com/android/dialer/app/res/values/strings.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/java/com/android/dialer/app/res/values/strings.xml b/java/com/android/dialer/app/res/values/strings.xml index 841eb9c9b..485bd8994 100644 --- a/java/com/android/dialer/app/res/values/strings.xml +++ b/java/com/android/dialer/app/res/values/strings.xml @@ -652,7 +652,7 @@ Transcribed by Google - Google is transcribing… + Transcribing… Transcript not available. -- cgit v1.2.3