[Android] TV: browse only at activity creation
Geoffrey Métais
git at videolan.org
Mon Feb 15 16:41:08 CET 2016
vlc-android | branch: master | Geoffrey Métais <geoffrey.metais at gmail.com> | Mon Feb 15 16:39:16 2016 +0100| [8b23a3898a1161fc0ff4c7be819f6f2ad95a51c5] | committer: Geoffrey Métais
TV: browse only at activity creation
> https://code.videolan.org/videolan/vlc-android/commit/8b23a3898a1161fc0ff4c7be819f6f2ad95a51c5
---
.../org/videolan/vlc/gui/tv/browser/SortedBrowserFragment.java | 9 ++-------
1 file changed, 2 insertions(+), 7 deletions(-)
diff --git a/vlc-android/src/org/videolan/vlc/gui/tv/browser/SortedBrowserFragment.java b/vlc-android/src/org/videolan/vlc/gui/tv/browser/SortedBrowserFragment.java
index 0d0404c..dc906af 100644
--- a/vlc-android/src/org/videolan/vlc/gui/tv/browser/SortedBrowserFragment.java
+++ b/vlc-android/src/org/videolan/vlc/gui/tv/browser/SortedBrowserFragment.java
@@ -96,17 +96,12 @@ public abstract class SortedBrowserFragment extends BrowseFragment implements Br
setBrandColor(getResources().getColor(R.color.orange800));
}
- public void onResume() {
- super.onResume();
- if (mAdapter.size() == 0) {
- browse();
- }
- }
-
@Override
public void onActivityCreated(Bundle savedInstanceState) {
super.onActivityCreated(savedInstanceState);
setHeadersState(HEADERS_HIDDEN);
+ if (mAdapter.size() == 0)
+ browse();
}
More information about the Android
mailing list