Disable VVM account when the SIM is removed

When the SIM is removed the VVM config is no longer valid so the event
cannot be handled.

In this CL the status will directly be disabled.

Change-Id: I7ce50734435b2378779b464da3364031efff1f1f
Fixes:30678043
diff --git a/src/com/android/phone/vvm/omtp/sync/OmtpVvmSourceManager.java b/src/com/android/phone/vvm/omtp/sync/OmtpVvmSourceManager.java
index ac4ba0a..9b06462 100644
--- a/src/com/android/phone/vvm/omtp/sync/OmtpVvmSourceManager.java
+++ b/src/com/android/phone/vvm/omtp/sync/OmtpVvmSourceManager.java
@@ -23,10 +23,7 @@
 import com.android.internal.telephony.Phone;
 import com.android.phone.PhoneUtils;
 import com.android.phone.VoicemailStatus;
-import com.android.phone.vvm.omtp.OmtpEvents;
-import com.android.phone.vvm.omtp.OmtpVvmCarrierConfigHelper;
 import com.android.phone.vvm.omtp.VvmPhoneStateListener;
-import com.android.phone.vvm.omtp.utils.PhoneAccountHandleConverter;
 import java.util.Collections;
 import java.util.Map;
 import java.util.Set;
@@ -106,9 +103,9 @@
     }
 
     public void removeSource(PhoneAccountHandle phoneAccount) {
-        new OmtpVvmCarrierConfigHelper(mContext, PhoneAccountHandleConverter.toSubId(phoneAccount))
-            .handleEvent(VoicemailStatus.edit(mContext, phoneAccount),
-                OmtpEvents.OTHER_SOURCE_REMOVED);
+        // TODO: should use OmtpVvmCarrierConfigHelper to handle the event. But currently it
+        // couldn't handle events on removed SIMs
+        VoicemailStatus.disable(mContext, phoneAccount);
         removePhoneStateListener(phoneAccount);
         mActiveVvmSources.remove(phoneAccount);
     }