summaryrefslogtreecommitdiffstats
path: root/src/java/com/android/internal/telephony/IccPhoneBookInterfaceManager.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/java/com/android/internal/telephony/IccPhoneBookInterfaceManager.java')
-rw-r--r--src/java/com/android/internal/telephony/IccPhoneBookInterfaceManager.java12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/java/com/android/internal/telephony/IccPhoneBookInterfaceManager.java b/src/java/com/android/internal/telephony/IccPhoneBookInterfaceManager.java
index 45562ca..0e5f2da 100644
--- a/src/java/com/android/internal/telephony/IccPhoneBookInterfaceManager.java
+++ b/src/java/com/android/internal/telephony/IccPhoneBookInterfaceManager.java
@@ -103,11 +103,23 @@ public abstract class IccPhoneBookInterfaceManager extends IIccPhoneBook.Stub {
public IccPhoneBookInterfaceManager(PhoneBase phone) {
this.phone = phone;
+ IccRecords r = phone.mIccRecords.get();
+ if (r != null) {
+ adnCache = r.getAdnCache();
+ }
}
public void dispose() {
}
+ public void updateIccRecords(IccRecords iccRecords) {
+ if (iccRecords != null) {
+ adnCache = iccRecords.getAdnCache();
+ } else {
+ adnCache = null;
+ }
+ }
+
protected void publish() {
//NOTE service "simphonebook" added by IccSmsInterfaceManagerProxy
ServiceManager.addService("simphonebook", this);