Show indeterminate progress bar on mobile if chat is loading

This commit is contained in:
fkloft
2014-03-13 22:16:27 +01:00
parent 8c55c1eea6
commit 99324c076c

View File

@ -86,6 +86,11 @@ window.renderUpdateStatus = function() {
//$('#updatestatus').click(function() { startRefreshTimeout(10); });
//. <a style="cursor: pointer" onclick="startRefreshTimeout(10)" title="Refresh">⟳</a>';
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);
}