[Android] Fix emptyview at network root level
Geoffrey Métais
git at videolan.org
Mon Mar 7 17:14:47 CET 2016
vlc-android | branch: master | Geoffrey Métais <geoffrey.metais at gmail.com> | Mon Mar 7 17:14:13 2016 +0100| [a7e03480897e4dfde1a56aa0fb7cf3194b1e3ab3] | committer: Geoffrey Métais
Fix emptyview at network root level
> https://code.videolan.org/videolan/vlc-android/commit/a7e03480897e4dfde1a56aa0fb7cf3194b1e3ab3
---
.../src/org/videolan/vlc/gui/browser/NetworkBrowserFragment.java | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/vlc-android/src/org/videolan/vlc/gui/browser/NetworkBrowserFragment.java b/vlc-android/src/org/videolan/vlc/gui/browser/NetworkBrowserFragment.java
index b40b2de..1f85049 100644
--- a/vlc-android/src/org/videolan/vlc/gui/browser/NetworkBrowserFragment.java
+++ b/vlc-android/src/org/videolan/vlc/gui/browser/NetworkBrowserFragment.java
@@ -221,7 +221,10 @@ public class NetworkBrowserFragment extends BaseBrowserFragment implements View.
mEmptyView.setVisibility(View.VISIBLE);
mRecyclerView.setVisibility(View.GONE);
} else {
- mEmptyView.setText(mRoot ? R.string.network_shares_discovery : R.string.network_empty);
+ if (mRoot)
+ mEmptyView.setText(AndroidDevices.hasLANConnection() ? R.string.network_shares_discovery : R.string.network_connection_needed);
+ else
+ mEmptyView.setText(R.string.network_empty);
mEmptyView.setVisibility(View.VISIBLE);
mRecyclerView.setVisibility(View.GONE);
mSwipeRefreshLayout.setRefreshing(false);
More information about the Android
mailing list