Fix usage of obtainMessage()
Instead of invoking obtainMessage(what, obj), make sure to pass the
phoneId along as arg1 by including arg2=-1. This solves the issue of
loading the carrier config from the carrier app on mSIM devices (with
phoneIds other than 0).
Bug: 122365375
Test: manual
Change-Id: Ie4ffe1532610dcee90523978b0368aba088e0398
diff --git a/src/com/android/phone/CarrierConfigLoader.java b/src/com/android/phone/CarrierConfigLoader.java
index 137d3d1..6a3e928 100644
--- a/src/com/android/phone/CarrierConfigLoader.java
+++ b/src/com/android/phone/CarrierConfigLoader.java
@@ -324,7 +324,7 @@
final String carrierPackageName = getCarrierPackageForPhoneId(phoneId);
if (carrierPackageName != null) {
log("Found carrier config app: " + carrierPackageName);
- sendMessage(obtainMessage(EVENT_DO_FETCH_CARRIER, phoneId));
+ sendMessage(obtainMessage(EVENT_DO_FETCH_CARRIER, phoneId, -1));
} else {
broadcastConfigChangedIntent(phoneId);
}