Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit eb7cb561 authored by Narayan Kamath's avatar Narayan Kamath
Browse files

TelephonyManager: Avoid unnecessary object allocation.

No need to use a boxed type - the value is being passed to a function
that takes a boolean.

Test: make
Change-Id: Id6d5c581dd6e3a1832d3419a2fbec92e97c4240d
parent ef9c4254
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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.