diff options
author | twyen <twyen@google.com> | 2018-02-23 01:14:17 -0800 |
---|---|---|
committer | Copybara-Service <copybara-piper@google.com> | 2018-02-23 01:15:33 -0800 |
commit | 80f3d35f64a720a1d59552589cb77e2061eadf6d (patch) | |
tree | e7a090925332a963adc41eb97d0adac6de39b36c /java/com/android/voicemail/impl/OmtpVvmCarrierConfigHelper.java | |
parent | ca2ef804166230c9370e402b1d9295f2889288eb (diff) |
Prevent VVM subscribing when carrier reset subscription status
On VVM3 when the user upgrade to premium VVM through the carrier, the carrier will actively send STATUS SMSes first indicating the status is unknown, then the new premium status.
STATUS updates sent by the carrier were ignored until recently. Currently seeing the unknown status the provisioning process will be triggered, and the user will be downgraded back to basic VVM.
In this CL if the STATUS update is initiated by the carrier instead by a STATUS request, provisioning will be ignored.
Bug: 73625577
Test: N/A
PiperOrigin-RevId: 186737242
Change-Id: Ieb10f9a50e0c3001d02cefc31256a9adac1ae5d1
Diffstat (limited to 'java/com/android/voicemail/impl/OmtpVvmCarrierConfigHelper.java')
-rw-r--r-- | java/com/android/voicemail/impl/OmtpVvmCarrierConfigHelper.java | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/java/com/android/voicemail/impl/OmtpVvmCarrierConfigHelper.java b/java/com/android/voicemail/impl/OmtpVvmCarrierConfigHelper.java index f8a9e4bcf..8896bc740 100644 --- a/java/com/android/voicemail/impl/OmtpVvmCarrierConfigHelper.java +++ b/java/com/android/voicemail/impl/OmtpVvmCarrierConfigHelper.java @@ -399,9 +399,10 @@ public class OmtpVvmCarrierConfigHelper { PhoneAccountHandle phone, VoicemailStatus.Editor status, StatusMessage message, - Bundle data) { + Bundle data, + boolean isCarrierInitiated) { Assert.checkArgument(isValid()); - protocol.startProvisioning(task, phone, this, status, message, data); + protocol.startProvisioning(task, phone, this, status, message, data, isCarrierInitiated); } public void requestStatus(@Nullable PendingIntent sentIntent) { |