[Android] Hide headers in TV network browser

Geoffrey Métais git at videolan.org
Tue Dec 1 15:42:00 CET 2015


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

Hide headers in TV network browser

> http://git.videolan.org/gitweb.cgi/vlc-ports/android.git/?a=commit;h=a13904dbd926fa2add581d0bc91ec21218e6440e
---

 .../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