diff options
author | Tom Taylor <tomtaylor@google.com> | 2016-04-13 16:15:09 -0700 |
---|---|---|
committer | Tom Taylor <tomtaylor@google.com> | 2016-04-13 16:15:09 -0700 |
commit | 646b805ac0ede377f9571676522294b511676c1d (patch) | |
tree | 81ed91df7c9d9748383b559d6c8503493e194f88 | |
parent | d5e8b788af222ea33e57d340e72d7cebe89d3fb1 (diff) | |
download | Mms-646b805ac0ede377f9571676522294b511676c1d.tar.gz |
MmsConfigManager in MmsService uses wrong action name for ICC loaded intent
Bug 28173750
The old code was not actually registering to listen to a real action.
ACTION_SIM_STATE_CHANGED is the appropriate intent action that should
cause the MmsConfigManager to reload the config values.
Change-Id: Ia99a7332da288d92423fda1d19be21e7677ceefe
-rw-r--r-- | src/com/android/mms/service/MmsConfigManager.java | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/com/android/mms/service/MmsConfigManager.java b/src/com/android/mms/service/MmsConfigManager.java index 8ba5400..ed35582 100644 --- a/src/com/android/mms/service/MmsConfigManager.java +++ b/src/com/android/mms/service/MmsConfigManager.java @@ -31,6 +31,7 @@ import android.telephony.SubscriptionManager.OnSubscriptionsChangedListener; import android.util.ArrayMap; import com.android.internal.telephony.IccCardConstants; +import com.android.internal.telephony.TelephonyIntents; import java.util.List; import java.util.Map; @@ -64,7 +65,7 @@ public class MmsConfigManager { public void onReceive(Context context, Intent intent) { String action = intent.getAction(); LogUtil.i("MmsConfigManager receiver action: " + action); - if (action.equals(IccCardConstants.INTENT_VALUE_ICC_LOADED)) { + if (action.equals(TelephonyIntents.ACTION_SIM_STATE_CHANGED)) { loadInBackground(); } } @@ -85,7 +86,7 @@ public class MmsConfigManager { // TODO: When this object "finishes" we should unregister. final IntentFilter intentFilterLoaded = - new IntentFilter(IccCardConstants.INTENT_VALUE_ICC_LOADED); + new IntentFilter(TelephonyIntents.ACTION_SIM_STATE_CHANGED); context.registerReceiver(mReceiver, intentFilterLoaded); // TODO: When this object "finishes" we should unregister by invoking |