Prevent crash introduced in a4945c8534
when there are no hosts configured
This commit is contained in:
parent
361a854e1f
commit
92773ea57c
|
@ -489,6 +489,8 @@ public class HostManager {
|
|||
* @param hostInfo Host for which to check version
|
||||
*/
|
||||
public void checkAndUpdateKodiVersion(final HostInfo hostInfo) {
|
||||
if (hostInfo == null) return;
|
||||
|
||||
if (hostInfo.getUpdated() + KODI_VERSION_CHECK_INTERVAL_MILLIS < java.lang.System.currentTimeMillis()) {
|
||||
LogUtils.LOGD(TAG, "Checking Kodi version...");
|
||||
final HostConnection hostConnection = new HostConnection(hostInfo);
|
||||
|
|
|
@ -122,6 +122,7 @@ public class RemoteActivity extends BaseActivity
|
|||
intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
|
||||
startActivity(intent);
|
||||
finish();
|
||||
return;
|
||||
}
|
||||
|
||||
// Set up the drawer.
|
||||
|
|
Loading…
Reference in New Issue