diff options
| author | 2017-03-20 10:49:16 +0000 | |
|---|---|---|
| committer | 2017-03-20 10:49:18 +0000 | |
| commit | 5d3f14fe02a3eaf668a6f9e1726e0e4c05a5b1ae (patch) | |
| tree | a9e1c6edcebae05ce8d5e6af4b4dd86923cffb7d | |
| parent | 7f8d27f84b4dc123bca45866bd12562c33d1d928 (diff) | |
| parent | eb7cb561f016a1d23b81364e0e78ace5d4192018 (diff) | |
Merge "TelephonyManager: Avoid unnecessary object allocation."
| -rw-r--r-- | telephony/java/android/telephony/TelephonyManager.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/telephony/java/android/telephony/TelephonyManager.java b/telephony/java/android/telephony/TelephonyManager.java index c691879706eb..d8a489285ad3 100644 --- a/telephony/java/android/telephony/TelephonyManager.java +++ b/telephony/java/android/telephony/TelephonyManager.java @@ -3204,7 +3204,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. |