Merge "TelephonyManager: Avoid unnecessary object allocation." am: 5d3f14fe02 am: 088df2bd0a
am: 20fa635f7b
Change-Id: I1008a22a437b46d4830ef89189d43db0e3d07c45
diff --git a/telephony/java/android/telephony/TelephonyManager.java b/telephony/java/android/telephony/TelephonyManager.java
index 7862523..aa55860 100644
--- a/telephony/java/android/telephony/TelephonyManager.java
+++ b/telephony/java/android/telephony/TelephonyManager.java
@@ -3349,7 +3349,7 @@
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.