summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Narayan Kamath <narayan@google.com> 2017-03-20 10:57:52 +0000
committer android-build-merger <android-build-merger@google.com> 2017-03-20 10:57:52 +0000
commit088df2bd0afe17f3f33e3c89a7bff0d114bdaf7c (patch)
tree4d9422267cee5b64624b0be52af6bcea73bcf58a
parent4aadda19022d89f81e507b0dfb0a446f123c7055 (diff)
parent5d3f14fe02a3eaf668a6f9e1726e0e4c05a5b1ae (diff)
Merge "TelephonyManager: Avoid unnecessary object allocation."
am: 5d3f14fe02 Change-Id: If425a64fe7820579045dfa40b356792f24d0de43
-rw-r--r--telephony/java/android/telephony/TelephonyManager.java2
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.