[Android] Hide headers in TV network browser

Geoffrey Métais git at videolan.org
Tue Dec 22 10:44:08 CET 2015


vlc-android | branch: 1.7.x | Geoffrey Métais <geoffrey.metais at gmail.com> | Tue Dec  1 15:25:43 2015 +0100| [b8fdd1bdbe574c2a05b891ff5ec3704b9d04d988] | committer: Geoffrey Métais

Hide headers in TV network browser

(cherry picked from commit a13904dbd926fa2add581d0bc91ec21218e6440e)
Signed-off-by: Geoffrey Métais <geoffrey.metais at gmail.com>

> https://code.videolan.org/videolan/vlc-android/commit/b8fdd1bdbe574c2a05b891ff5ec3704b9d04d988
---

 .../src/org/videolan/vlc/gui/tv/browser/NetworkBrowserFragment.java | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/vlc-android/flavors/tv/src/org/videolan/vlc/gui/tv/browser/NetworkBrowserFragment.java b/vlc-android/flavors/tv/src/org/videolan/vlc/gui/tv/browser/NetworkBrowserFragment.java
index 38a914c..2d32494 100644
--- a/vlc-android/flavors/tv/src/org/videolan/vlc/gui/tv/browser/NetworkBrowserFragment.java
+++ b/vlc-android/flavors/tv/src/org/videolan/vlc/gui/tv/browser/NetworkBrowserFragment.java
@@ -97,6 +97,12 @@ public class NetworkBrowserFragment extends BrowseFragment implements BrowserFra
         setBrandColor(getResources().getColor(R.color.orange800));
     }
 
+    @Override
+    public void onActivityCreated(Bundle savedInstanceState) {
+        super.onActivityCreated(savedInstanceState);
+        setHeadersState(HEADERS_HIDDEN);
+    }
+
     public void onResume() {
         super.onResume();
         if (mAdapter.size() == 0) {



More information about the Android mailing list