7171import org .json .JSONException ;
7272
7373import java .util .ArrayList ;
74+ import java .util .HashMap ;
7475import java .util .List ;
7576import java .util .Map ;
7677import java .util .Queue ;
@@ -130,6 +131,15 @@ public void onProxyConnected(LifecycleManager lifeCycleManager) {
130131 }
131132 }
132133
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+
133143 @ Override
134144 public void onServiceStarted (SessionType sessionType ) {
135145
@@ -141,11 +151,12 @@ public void onServiceEnded(SessionType sessionType) {
141151 }
142152
143153 @ Override
144- public void onProxyClosed (LifecycleManager lifeCycleManager , String info , Exception e , SdlDisconnectedReason reason ) {
154+ public void onProxyClosed (LifecycleManager lifeCycleManager , String info , Exception e , SdlDisconnectedReason reason , HashMap rpcNotificationListeners ) {
145155 Log .i (TAG , "Proxy is closed." );
146156 if (reason == null || !reason .equals (SdlDisconnectedReason .LANGUAGE_CHANGE )) {
147157 dispose ();
148158 }
159+ onRPCNotificationListeners = rpcNotificationListeners ;
149160 }
150161
151162 @ Override
@@ -311,6 +322,7 @@ void handleQueuedNotifications() {
311322 //Set variables to null that are no longer needed
312323 queuedNotifications = null ;
313324 queuedNotificationListener = null ;
325+ onRPCNotificationListeners = null ;
314326 }
315327 }
316328
0 commit comments