Fix to dismiss network selection notification when disable sim.

The network selection notification(Selected network unavailable)
couldn't be dismissed and remained when sim is disabled, since
disabled sim card has valid subId but not active.
Added inactive subId condition to dismiss notification.

Bug: 291697598
Test: atest NotificationMgrTest
Test: manually tested with AT&T and Fi sim card.
Change-Id: I3035b426560c9fa881f0867e9cc9bb01f20f5017
diff --git a/src/com/android/phone/NotificationMgr.java b/src/com/android/phone/NotificationMgr.java
index 60287e5..b044a61 100644
--- a/src/com/android/phone/NotificationMgr.java
+++ b/src/com/android/phone/NotificationMgr.java
@@ -817,7 +817,8 @@
         Phone phone = SubscriptionManager.isValidPhoneId(phoneId) ?
                 PhoneFactory.getPhone(phoneId) : PhoneFactory.getDefaultPhone();
         if (TelephonyCapabilities.supportsNetworkSelection(phone)) {
-            if (SubscriptionManager.isValidSubscriptionId(subId)) {
+            if (SubscriptionManager.isValidSubscriptionId(subId)
+                    && mSubscriptionManager.isActiveSubId(subId)) {
                 SharedPreferences sp = PreferenceManager.getDefaultSharedPreferences(mContext);
                 String selectedNetworkOperatorName =
                         sp.getString(Phone.NETWORK_SELECTION_NAME_KEY + subId, "");