summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Naveen Kalla <nkalla@codeaurora.org> 2010-06-28 23:31:46 -0700
committer Naveen Kalla <nkalla@codeaurora.org> 2010-06-28 23:31:46 -0700
commit3d59f8b41874e5e1183e236b7b079a0a0c510f6c (patch)
tree0da7389e5273f0b5f240c6499e5fb0d52ca79214
parentdd1880ee5bea09e9d37c6db29ef20e49d619c094 (diff)
Correct VM number updation during MBDN refresh.
The voice mail number and voice mail tag are not getting updated properly during MBDN refresh. When the data in MBDN EF is invalid, the voice mail number and voice mail tag are unchanged. They retain their previous value where as they should be null in this case. Change-Id: Ic3b9cb4cdf3ee5d2a33fc7e47cac968e752a0940
-rw-r--r--telephony/java/com/android/internal/telephony/gsm/SIMRecords.java7
1 files changed, 7 insertions, 0 deletions
diff --git a/telephony/java/com/android/internal/telephony/gsm/SIMRecords.java b/telephony/java/com/android/internal/telephony/gsm/SIMRecords.java
index d99a348674f4..30f38bd1a5dd 100644
--- a/telephony/java/com/android/internal/telephony/gsm/SIMRecords.java
+++ b/telephony/java/com/android/internal/telephony/gsm/SIMRecords.java
@@ -560,6 +560,13 @@ public final class SIMRecords extends IccRecords {
break;
case EVENT_GET_CPHS_MAILBOX_DONE:
case EVENT_GET_MBDN_DONE:
+ //Resetting the voice mail number and voice mail tag to null
+ //as these should be updated from the data read from EF_MBDN.
+ //If they are not reset, incase of invalid data/exception these
+ //variables are retaining their previous values and are
+ //causing invalid voice mailbox info display to user.
+ voiceMailNum = null;
+ voiceMailTag = null;
isRecordLoadResponse = true;
ar = (AsyncResult)msg.obj;