[Android] Fix loading display
Geoffrey Métais
git at videolan.org
Tue Apr 19 12:14:21 CEST 2016
vlc-android | branch: master | Geoffrey Métais <geoffrey.metais at gmail.com> | Tue Apr 19 12:13:34 2016 +0200| [fe244838f315744cf97c17513a145503500bafdc] | committer: Geoffrey Métais
Fix loading display
> https://code.videolan.org/videolan/vlc-android/commit/fe244838f315744cf97c17513a145503500bafdc
---
vlc-android/src/org/videolan/vlc/gui/browser/BaseBrowserFragment.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/vlc-android/src/org/videolan/vlc/gui/browser/BaseBrowserFragment.java b/vlc-android/src/org/videolan/vlc/gui/browser/BaseBrowserFragment.java
index ce8ab51..a492600 100644
--- a/vlc-android/src/org/videolan/vlc/gui/browser/BaseBrowserFragment.java
+++ b/vlc-android/src/org/videolan/vlc/gui/browser/BaseBrowserFragment.java
@@ -232,7 +232,7 @@ public abstract class BaseBrowserFragment extends MediaBrowserFragment implement
mAdapter.addItem(media, mReadyToDisplay && mRoot, false);
if (empty && mReadyToDisplay)
updateEmptyView();
- if (mRoot && mSwipeRefreshLayout.isRefreshing())
+ if (mRoot && (empty || mSwipeRefreshLayout.isRefreshing()))
mHandler.sendEmptyMessage(BrowserFragmentHandler.MSG_HIDE_LOADING);
}
More information about the Android
mailing list