am 7f081794: am c80e3d43: TelephonyManager.listen can have notifyNow always true.

* commit '7f081794074c1356ba347b802729adf36f06ad19':
  TelephonyManager.listen can have notifyNow always true.
This commit is contained in:
Wink Saville
2013-06-19 13:21:41 -07:00
committed by Android Git Automerger

View File

@@ -1252,7 +1252,7 @@ public class TelephonyManager {
public void listen(PhoneStateListener listener, int events) { public void listen(PhoneStateListener listener, int events) {
String pkgForDebug = mContext != null ? mContext.getPackageName() : "<unknown>"; String pkgForDebug = mContext != null ? mContext.getPackageName() : "<unknown>";
try { try {
Boolean notifyNow = (getITelephony() != null); Boolean notifyNow = true;
sRegistry.listen(pkgForDebug, listener.callback, events, notifyNow); sRegistry.listen(pkgForDebug, listener.callback, events, notifyNow);
} catch (RemoteException ex) { } catch (RemoteException ex) {
// system process dead // system process dead