Loading src/java/com/android/internal/telephony/CarrierServiceBindHelper.java +5 −12 Original line number Diff line number Diff line Loading @@ -71,9 +71,6 @@ public class CarrierServiceBindHelper { private final PackageChangeReceiver mPackageMonitor = new CarrierServicePackageMonitor(); private final LocalLog mLocalLog = new LocalLog(100); // whether we have successfully bound to the service private boolean mServiceBound = false; private BroadcastReceiver mUserUnlockedReceiver = new BroadcastReceiver() { @Override public void onReceive(Context context, Intent intent) { Loading Loading @@ -291,7 +288,6 @@ public class CarrierServiceBindHelper { (r) -> mHandler.post(r), connection)) { logdWithLocalLog("service bound"); mServiceBound = true; return; } Loading Loading @@ -346,17 +342,14 @@ public class CarrierServiceBindHelper { carrierPackage = null; carrierServiceClass = null; // Actually unbind if (mServiceBound) { logdWithLocalLog("Unbinding from carrier app"); mServiceBound = false; // Always call unbindService, no matter if bindService succeed. if (connection != null) { mContext.unbindService(connection); } else { logdWithLocalLog("Not bound, skipping unbindService call"); } logdWithLocalLog("Unbinding from carrier app"); connection = null; mUnbindScheduledUptimeMillis = -1; } } private void cancelScheduledUnbind() { logdWithLocalLog("cancelScheduledUnbind"); Loading Loading
src/java/com/android/internal/telephony/CarrierServiceBindHelper.java +5 −12 Original line number Diff line number Diff line Loading @@ -71,9 +71,6 @@ public class CarrierServiceBindHelper { private final PackageChangeReceiver mPackageMonitor = new CarrierServicePackageMonitor(); private final LocalLog mLocalLog = new LocalLog(100); // whether we have successfully bound to the service private boolean mServiceBound = false; private BroadcastReceiver mUserUnlockedReceiver = new BroadcastReceiver() { @Override public void onReceive(Context context, Intent intent) { Loading Loading @@ -291,7 +288,6 @@ public class CarrierServiceBindHelper { (r) -> mHandler.post(r), connection)) { logdWithLocalLog("service bound"); mServiceBound = true; return; } Loading Loading @@ -346,17 +342,14 @@ public class CarrierServiceBindHelper { carrierPackage = null; carrierServiceClass = null; // Actually unbind if (mServiceBound) { logdWithLocalLog("Unbinding from carrier app"); mServiceBound = false; // Always call unbindService, no matter if bindService succeed. if (connection != null) { mContext.unbindService(connection); } else { logdWithLocalLog("Not bound, skipping unbindService call"); } logdWithLocalLog("Unbinding from carrier app"); connection = null; mUnbindScheduledUptimeMillis = -1; } } private void cancelScheduledUnbind() { logdWithLocalLog("cancelScheduledUnbind"); Loading