Merge "TelephonyManager: Avoid unnecessary object allocation."
am: 5d3f14fe02
Change-Id: If425a64fe7820579045dfa40b356792f24d0de43
This commit is contained in:
@@ -3205,7 +3205,7 @@ public class TelephonyManager {
|
||||
public void listen(PhoneStateListener listener, int events) {
|
||||
if (mContext == null) return;
|
||||
try {
|
||||
Boolean notifyNow = (getITelephony() != null);
|
||||
boolean notifyNow = (getITelephony() != null);
|
||||
// If the listener has not explicitly set the subId (for example, created with the
|
||||
// default constructor), replace the subId so it will listen to the account the
|
||||
// telephony manager is created with.
|
||||
|
||||
Reference in New Issue
Block a user