diff options
author | Sharvil Nanavati <sharvil@google.com> | 2015-04-23 13:57:24 -0700 |
---|---|---|
committer | Sharvil Nanavati <sharvil@google.com> | 2015-04-27 19:00:13 +0000 |
commit | 61a3ab090f4b1edf0cb2c4ceae585a54ab613337 (patch) | |
tree | 380e8f7a125ffbd32378c5d3409ef68fdf1c15f3 /telephony/java | |
parent | a5b55a017a984608eacdf414bc1cbcd7615f1c13 (diff) | |
download | frameworks_base-61a3ab090f4b1edf0cb2c4ceae585a54ab613337.zip frameworks_base-61a3ab090f4b1edf0cb2c4ceae585a54ab613337.tar.gz frameworks_base-61a3ab090f4b1edf0cb2c4ceae585a54ab613337.tar.bz2 |
Use a separate intent action for subscription phone state changes.
Global phone state changes and subscription phone state changes
are aliased to the same intent. As a result, apps can't distinguish
between the two types of updates.
This change teases the two apart by using a different intent action
for each type of phone state change. This will break carrier apps
that depend on subscription phone state changes, but will fix state
inconsistencies in non-carrier apps.
Bug: 20309009
Change-Id: Ie81c37247917573a3ef5d957fda1087c16736e85
Diffstat (limited to 'telephony/java')
-rw-r--r-- | telephony/java/com/android/internal/telephony/PhoneConstants.java | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/telephony/java/com/android/internal/telephony/PhoneConstants.java b/telephony/java/com/android/internal/telephony/PhoneConstants.java index 0ebd719..2a4032c 100644 --- a/telephony/java/com/android/internal/telephony/PhoneConstants.java +++ b/telephony/java/com/android/internal/telephony/PhoneConstants.java @@ -150,6 +150,10 @@ public class PhoneConstants { public static final String SLOT_KEY = "slot"; + /** Fired when a subscriptions phone state changes. */ + public static final String ACTION_SUBSCRIPTION_PHONE_STATE_CHANGED = + "android.intent.action.SUBSCRIPTION_PHONE_STATE"; + // FIXME: This is used to pass a subId via intents, we need to look at its usage, which is // FIXME: extensive, and see if this should be an array of all active subId's or ...? public static final String SUBSCRIPTION_KEY = "subscription"; |