Load default data subid on create

PhoneGlobals sometimes is created later than DefaultDataSubscription
Changed Intent. At this time, there is no logic to load the initial
value, so modified it to load the initial value so that it does not
remain as INVALID.

Bug: 297319589
Test: manual bootup and verify
Merged-In: I0aa9ec497014ae1e4af55eca41e6df681cce6541
Change-Id: I0aa9ec497014ae1e4af55eca41e6df681cce6541
(cherry picked from commit dce559ba472e298d8ffb7af8ae523f4cb5a05fe3)
diff --git a/src/com/android/phone/PhoneGlobals.java b/src/com/android/phone/PhoneGlobals.java
index 9a8526b..2ec9e1b 100644
--- a/src/com/android/phone/PhoneGlobals.java
+++ b/src/com/android/phone/PhoneGlobals.java
@@ -574,6 +574,13 @@
             intentFilter.addAction(TelephonyIntents.ACTION_DEFAULT_DATA_SUBSCRIPTION_CHANGED);
             intentFilter.addAction(CarrierConfigManager.ACTION_CARRIER_CONFIG_CHANGED);
             registerReceiver(mReceiver, intentFilter);
+            int defaultDataSubId = SubscriptionManager.getDefaultDataSubscriptionId();
+            if (SubscriptionManager.isValidSubscriptionId(defaultDataSubId)) {
+                if (VDBG) Log.v(LOG_TAG, "Loaded initial default data sub: " + defaultDataSubId);
+                mDefaultDataSubId = defaultDataSubId;
+                registerSettingsObserver();
+                updateDataRoamingStatus();
+            }
 
             PhoneConfigurationManager.registerForMultiSimConfigChange(
                     mHandler, EVENT_MULTI_SIM_CONFIG_CHANGED, null);