Skip to content

Commit a12b93c

Browse files
committed
Update startAltTransportTimer in RS
1 parent 8e9299a commit a12b93c

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

android/sdl_android/src/main/java/com/smartdevicelink/transport/SdlRouterService.java

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2664,15 +2664,11 @@ protected static LocalRouterService getLocalRouterService(Intent launchIntent, C
26642664
* This method is used to check for the newest version of this class to make sure the latest and greatest is up and running.
26652665
*/
26662666
private void startAltTransportTimer() {
2667-
if (Looper.myLooper() == null) {
2668-
Looper.prepare();
2669-
}
2670-
26712667
if (altTransportTimerHandler != null && altTransportTimerRunnable != null) {
26722668
altTransportTimerHandler.removeCallbacks(altTransportTimerRunnable);
26732669
}
26742670

2675-
altTransportTimerHandler = new Handler(Looper.myLooper());
2671+
altTransportTimerHandler = new Handler(Looper.getMainLooper());
26762672
altTransportTimerRunnable = new Runnable() {
26772673
public void run() {
26782674
altTransportTimerHandler = null;

0 commit comments

Comments
 (0)