7171import org .json .JSONException ;
7272
7373import java .util .ArrayList ;
74- import java .util .HashMap ;
7574import java .util .List ;
7675import java .util .Map ;
7776import java .util .Queue ;
@@ -131,15 +130,6 @@ public void onProxyConnected(LifecycleManager lifeCycleManager) {
131130 }
132131 }
133132
134- @ Override
135- @ Deprecated
136- public void onProxyClosed (LifecycleManager lifeCycleManager , String info , Exception e , SdlDisconnectedReason reason ) {
137- Log .i (TAG , "Proxy is closed." );
138- if (reason == null || !reason .equals (SdlDisconnectedReason .LANGUAGE_CHANGE )) {
139- dispose ();
140- }
141- }
142-
143133 @ Override
144134 public void onServiceStarted (SessionType sessionType ) {
145135
@@ -151,12 +141,11 @@ public void onServiceEnded(SessionType sessionType) {
151141 }
152142
153143 @ Override
154- public void onProxyClosed (LifecycleManager lifeCycleManager , String info , Exception e , SdlDisconnectedReason reason , HashMap rpcNotificationListeners ) {
144+ public void onProxyClosed (LifecycleManager lifeCycleManager , String info , Exception e , SdlDisconnectedReason reason ) {
155145 Log .i (TAG , "Proxy is closed." );
156146 if (reason == null || !reason .equals (SdlDisconnectedReason .LANGUAGE_CHANGE )) {
157147 dispose ();
158148 }
159- onRPCNotificationListeners = rpcNotificationListeners ;
160149 }
161150
162151 @ Override
@@ -322,7 +311,6 @@ void handleQueuedNotifications() {
322311 //Set variables to null that are no longer needed
323312 queuedNotifications = null ;
324313 queuedNotificationListener = null ;
325- onRPCNotificationListeners = null ;
326314 }
327315 }
328316
0 commit comments