From 99324c076c1a97efbf8ed0cafc0bfa51fa32c967 Mon Sep 17 00:00:00 2001 From: fkloft Date: Thu, 13 Mar 2014 22:16:27 +0100 Subject: [PATCH] Show indeterminate progress bar on mobile if chat is loading --- code/status_bar.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/code/status_bar.js b/code/status_bar.js index aa27c407..a3b00da9 100644 --- a/code/status_bar.js +++ b/code/status_bar.js @@ -86,6 +86,11 @@ window.renderUpdateStatus = function() { //$('#updatestatus').click(function() { startRefreshTimeout(10); }); //. '; + if(progress == 1 && window.activeRequests.length > 0) { + // we don't know the exact progress, but we have requests (e.g. chat) running, so show it as indeterminate. + progress = -1; + } + if (typeof android !== 'undefined' && android && android.setProgress) android.setProgress(progress); }