From b52a86e6cc095e3faa9cd196a8168f2d0641d750 Mon Sep 17 00:00:00 2001 From: Cameron Gutman Date: Fri, 21 Oct 2016 14:04:31 -0700 Subject: [PATCH] Fix app grid isRunning icon not displaying --- app/src/main/java/com/limelight/AppView.java | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/app/src/main/java/com/limelight/AppView.java b/app/src/main/java/com/limelight/AppView.java index 5fe158ee..a85c91fa 100644 --- a/app/src/main/java/com/limelight/AppView.java +++ b/app/src/main/java/com/limelight/AppView.java @@ -95,12 +95,15 @@ public class AppView extends Activity implements AdapterFragmentCallbacks { return; } + // Load the app grid with cached data (if possible). + // This must be done _before_ startComputerUpdates() + // so the initial serverinfo response can update the running + // icon. + populateAppGridWithCache(); + // Start updates startComputerUpdates(); - // Load the app grid with cached data (if possible) - populateAppGridWithCache(); - runOnUiThread(new Runnable() { @Override public void run() { @@ -222,6 +225,7 @@ public class AppView extends Activity implements AdapterFragmentCallbacks { try { updateUiWithAppList(NvHTTP.getAppListByReader(new StringReader(details.rawAppList))); + updateUiWithServerinfo(details); if (blockingLoadSpinner != null) { blockingLoadSpinner.dismiss();