[Android] set restart value in corect class

Geoffrey Métais git at videolan.org
Wed Jan 16 11:26:21 CET 2019


vlc-android | branch: master | Geoffrey Métais <geoffrey.metais at gmail.com> | Wed Jan 16 11:23:33 2019 +0100| [1fcab8b7ff678a0392faf08910ec81bcf8bb116b] | committer: Geoffrey Métais

set restart value in corect class

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

 vlc-android/src/org/videolan/vlc/gui/browser/MediaBrowserFragment.java | 1 +
 vlc-android/src/org/videolan/vlc/gui/video/VideoGridFragment.java      | 1 -
 2 files changed, 1 insertion(+), 1 deletion(-)

diff --git a/vlc-android/src/org/videolan/vlc/gui/browser/MediaBrowserFragment.java b/vlc-android/src/org/videolan/vlc/gui/browser/MediaBrowserFragment.java
index 8c75bfc8f..e3cbf75f7 100644
--- a/vlc-android/src/org/videolan/vlc/gui/browser/MediaBrowserFragment.java
+++ b/vlc-android/src/org/videolan/vlc/gui/browser/MediaBrowserFragment.java
@@ -93,6 +93,7 @@ public abstract class MediaBrowserFragment<T extends SortableModel> extends Frag
     @Override
     public void onViewCreated(View view, @Nullable Bundle savedInstanceState) {
         super.onViewCreated(view, savedInstanceState);
+        restart = false;
         mSearchButtonView = view.findViewById(R.id.searchButton);
         mSwipeRefreshLayout = view.findViewById(R.id.swipeLayout);
         mSwipeRefreshLayout.setColorSchemeResources(R.color.orange700);
diff --git a/vlc-android/src/org/videolan/vlc/gui/video/VideoGridFragment.java b/vlc-android/src/org/videolan/vlc/gui/video/VideoGridFragment.java
index c898ad9f8..b8c21e1e7 100644
--- a/vlc-android/src/org/videolan/vlc/gui/video/VideoGridFragment.java
+++ b/vlc-android/src/org/videolan/vlc/gui/video/VideoGridFragment.java
@@ -124,7 +124,6 @@ public class VideoGridFragment extends MediaBrowserFragment<VideosModel> impleme
     @Override
     public void onViewCreated(View view, @Nullable Bundle savedInstanceState) {
         super.onViewCreated(view, savedInstanceState);
-        restart = false;
         final boolean empty = viewModel.getDataset().getValue().isEmpty();
         mBinding.loadingFlipper.setVisibility(empty ? View.VISIBLE : View.GONE);
         mBinding.loadingTitle.setVisibility(empty ? View.VISIBLE : View.GONE);



More information about the Android mailing list