File tree Expand file tree Collapse file tree
android/hello_sdl_android/src/main/java/com/sdl/hellosdlandroid Expand file tree Collapse file tree Original file line number Diff line number Diff line change 77
88import com .smartdevicelink .transport .SdlBroadcastReceiver ;
99import com .smartdevicelink .transport .SdlRouterService ;
10- import com .smartdevicelink .transport .TransportConstants ;
1110
1211public class SdlReceiver extends SdlBroadcastReceiver {
1312 private static final String TAG = "SdlBroadcastReciever" ;
14- public static final String RECONNECT_LANG_CHANGE = "RECONNECT_LANG_CHANGE" ;
1513
1614 @ Override
1715 public void onSdlEnabled (Context context , Intent intent ) {
@@ -36,16 +34,5 @@ public Class<? extends SdlRouterService> defineLocalSdlRouterClass() {
3634 @ Override
3735 public void onReceive (Context context , Intent intent ) {
3836 super .onReceive (context , intent ); // Required if overriding this method
39-
40- if (intent != null ) {
41- String action = intent .getAction ();
42- if (action != null ){
43- if (action .equalsIgnoreCase (TransportConstants .START_ROUTER_SERVICE_ACTION )) {
44- if (intent .getBooleanExtra (RECONNECT_LANG_CHANGE , false )) {
45- onSdlEnabled (context , intent );
46- }
47- }
48- }
49- }
5037 }
5138}
You can’t perform that action at this time.
0 commit comments