summaryrefslogtreecommitdiffstats
path: root/src/com
diff options
context:
space:
mode:
authorzoey chen <zoeychen@google.com>2020-03-09 16:29:54 +0800
committerZoey Chen <zoeychen@google.com>2020-03-12 03:23:52 +0000
commit608143e5f38a3c288f21f9031bbe28e143914919 (patch)
treeb46d585fa895c0a2c3cab6e462e8ae26d9d4ee0f /src/com
parent3c8aa7b586b7e603ac99c8e4f0a9e4adf06cd034 (diff)
downloadplatform_packages_services_Mms-608143e5f38a3c288f21f9031bbe28e143914919.tar.gz
platform_packages_services_Mms-608143e5f38a3c288f21f9031bbe28e143914919.tar.bz2
platform_packages_services_Mms-608143e5f38a3c288f21f9031bbe28e143914919.zip
Reason: Revisit and redesign in S Bug: 147390517 Test: make Change-Id: Ie6a9cf16dc2162e576f113c88ee43014c1442be8 Merged-In: Ie6a9cf16dc2162e576f113c88ee43014c1442be8 (cherry picked from commit 3307dd2d611f27482b559865586b70e8b5c038fe)
Diffstat (limited to 'src/com')
-rw-r--r--src/com/android/mms/service/SendRequest.java20
1 files changed, 2 insertions, 18 deletions
diff --git a/src/com/android/mms/service/SendRequest.java b/src/com/android/mms/service/SendRequest.java
index ebbfd6c..e4d1d55 100644
--- a/src/com/android/mms/service/SendRequest.java
+++ b/src/com/android/mms/service/SendRequest.java
@@ -130,7 +130,8 @@ public class SendRequest extends MmsRequest {
@Override
protected Void doInBackground(Void... voids) {
try {
- notifyEmergencyContact(mContext);
+ BlockedNumberContract.SystemContract
+ .notifyEmergencyContact(mContext);
} catch (Exception e) {
LogUtil.e(getRequestId(),
"Exception notifying emergency contact. messageId: "
@@ -460,21 +461,4 @@ public class SendRequest extends MmsRequest {
+ " with result: " + result);
}
}
-
- /**
- * Notifies the provider that emergency services were contacted by the user.
- */
- private void notifyEmergencyContact(Context context) {
- try {
- LogUtil.i("notifyEmergencyContact; caller=%s", context.getOpPackageName());
- context.getContentResolver().call(
- BlockedNumberContract.AUTHORITY_URI,
- BlockedNumberContract.METHOD_NOTIFY_EMERGENCY_CONTACT,
- null, null);
- } catch (NullPointerException | IllegalArgumentException ex) {
- // The content resolver can throw an NPE or IAE; we don't want to crash Telecom if
- // either of these happen.
- LogUtil.w(null, "notifyEmergencyContact: provider not ready.");
- }
- }
}