summaryrefslogtreecommitdiffstats
path: root/telephony/java/android
diff options
context:
space:
mode:
authorWink Saville <wink@google.com>2013-06-19 11:28:06 -0700
committerWink Saville <wink@google.com>2013-06-19 11:28:06 -0700
commitc80e3d434f034d8594014df2fe028e9420930ea8 (patch)
treee34174d7c206031c1543bed43ebb5e3187a6e89e /telephony/java/android
parentcc892d68c897f51b8998f7de11302bb9b9cebbff (diff)
downloadframeworks_base-c80e3d434f034d8594014df2fe028e9420930ea8.zip
frameworks_base-c80e3d434f034d8594014df2fe028e9420930ea8.tar.gz
frameworks_base-c80e3d434f034d8594014df2fe028e9420930ea8.tar.bz2
TelephonyManager.listen can have notifyNow always true.
Since telepony.registry is a real system service notifyNow parameter doesn't need to be conditional as telephony.registery will never go away. This is different from most of the other TelephonyManager methods which are used to invoke methods on the phone service which implements ITelephony and is implemented by PhoneInterfaceManager in the phone application. Since the phone app is not a system service it can and does go away when it crashes. Bug: 9393863 Change-Id: I1a8afc12b0e139e72f05820e49f3d996aec2b52a
Diffstat (limited to 'telephony/java/android')
-rw-r--r--telephony/java/android/telephony/TelephonyManager.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/telephony/java/android/telephony/TelephonyManager.java b/telephony/java/android/telephony/TelephonyManager.java
index 26dde1e..4185aea 100644
--- a/telephony/java/android/telephony/TelephonyManager.java
+++ b/telephony/java/android/telephony/TelephonyManager.java
@@ -1252,7 +1252,7 @@ public class TelephonyManager {
public void listen(PhoneStateListener listener, int events) {
String pkgForDebug = mContext != null ? mContext.getPackageName() : "<unknown>";
try {
- Boolean notifyNow = (getITelephony() != null);
+ Boolean notifyNow = true;
sRegistry.listen(pkgForDebug, listener.callback, events, notifyNow);
} catch (RemoteException ex) {
// system process dead