diff options
| author | 2017-03-20 11:04:17 +0000 | |
|---|---|---|
| committer | 2017-03-20 11:04:17 +0000 | |
| commit | 20fa635f7b60bb6a0af9f3b56c40ff9337b58b74 (patch) | |
| tree | ebb73f95d3724ed21fa56b0cda50bb5bfa05e161 | |
| parent | 606f1ae931e95f130f0d08d8628af0b31cf5ee9c (diff) | |
| parent | 088df2bd0afe17f3f33e3c89a7bff0d114bdaf7c (diff) | |
Merge "TelephonyManager: Avoid unnecessary object allocation." am: 5d3f14fe02
am: 088df2bd0a
Change-Id: I0af6c22b2c7418553a70d49f9d67393b51abd37f
| -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 d1df50a95023..d0eb2f77d145 100644 --- a/telephony/java/android/telephony/TelephonyManager.java +++ b/telephony/java/android/telephony/TelephonyManager.java @@ -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. |