From 9ad1fe88796f478be29460f91f48a971cd6803e1 Mon Sep 17 00:00:00 2001 From: Synced Synapse Date: Wed, 11 May 2016 19:24:27 +0100 Subject: [PATCH] Always show remote buttons, even if there's no connection over TCP/HTTP. There might be problems reaching Kodi through TCP/HTTP but EventServer might be available/responding, so always showing the remote buttons allows the user to navigate. One instance of this is when a modal dialog box is being shown, and the TCP thread isn't responding, showing the remote buttons allows the user to dismiss the dialog box and continue. --- app/src/main/java/org/xbmc/kore/ui/RemoteFragment.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/src/main/java/org/xbmc/kore/ui/RemoteFragment.java b/app/src/main/java/org/xbmc/kore/ui/RemoteFragment.java index c24465c..cf2b6de 100644 --- a/app/src/main/java/org/xbmc/kore/ui/RemoteFragment.java +++ b/app/src/main/java/org/xbmc/kore/ui/RemoteFragment.java @@ -510,7 +510,7 @@ public class RemoteFragment extends Fragment public void playerOnConnectionError(int errorCode, String description) { HostInfo hostInfo = hostManager.getHostInfo(); - switchToPanel(R.id.info_panel, false); + switchToPanel(R.id.info_panel, true); if (hostInfo != null) { infoTitle.setText(R.string.connecting); // TODO: check error code @@ -523,7 +523,7 @@ public class RemoteFragment extends Fragment public void playerNoResultsYet() { // Initialize info panel - switchToPanel(R.id.info_panel, false); + switchToPanel(R.id.info_panel, true); HostInfo hostInfo = hostManager.getHostInfo(); if (hostInfo != null) { infoTitle.setText(R.string.connecting);