Misc Telecomm API changes - impl
This CL contains plumbing for Telecomm API changes made in
ag/501321.
As a cleanup I also made InCallController listen to changes
to calls directly instead of using CallsManager.
Change-Id: Iaffe0b84cea6003f2a9b9d8b30676743d2b236d4
diff --git a/src/com/android/telecomm/MissedCallNotifier.java b/src/com/android/telecomm/MissedCallNotifier.java
index f0f5217..bb2f092 100644
--- a/src/com/android/telecomm/MissedCallNotifier.java
+++ b/src/com/android/telecomm/MissedCallNotifier.java
@@ -271,6 +271,12 @@
// Get data about the missed call from the cursor
Uri handle = Uri.parse(cursor.getString(
cursor.getColumnIndexOrThrow(Calls.NUMBER)));
+ int presentation = cursor.getInt(cursor.getColumnIndexOrThrow(
+ Calls.NUMBER_PRESENTATION));
+
+ if (presentation != Calls.PRESENTATION_ALLOWED) {
+ handle = null;
+ }
// Convert the data to a call object
Call call = new Call(null, null, null, true, false);
@@ -289,7 +295,7 @@
}
});
// Set the handle here because that is what triggers the contact info query.
- call.setHandle(handle);
+ call.setHandle(handle, presentation);
}
}
}