Ignore requests from an inactive VisualVoicemailService.

If the targetPackage from an an SMS event does not match the remotePackage (the currently active default dialer package), this event should not be sent by the inactive VVS. This CL ignores the package when it is no longer the active VVS.

Bug: 212694314
Test: manual
Change-Id: I1988e5e4bf5966e10ba2771699d4fc7ca5cd3c28
diff --git a/src/com/android/phone/vvm/RemoteVvmTaskManager.java b/src/com/android/phone/vvm/RemoteVvmTaskManager.java
index 7329854..daa5d67b 100644
--- a/src/com/android/phone/vvm/RemoteVvmTaskManager.java
+++ b/src/com/android/phone/vvm/RemoteVvmTaskManager.java
@@ -183,6 +183,7 @@
             if (targetPackage != null && !TextUtils.equals(packageName, targetPackage)) {
                 VvmLog.w(TAG, "target package " + targetPackage
                         + " is no longer the active VisualVoicemailService, ignoring");
+                continue;
             }
             ComponentInfo componentInfo = TelephonyUtils.getComponentInfo(info);
             return new ComponentName(componentInfo.packageName, componentInfo.name);