Эх сурвалжийг харах

GalleryFragment: disable fast scroll

Not working with tile view

Signed-off-by: Álvaro Brey <alvaro.brey@nextcloud.com>
Álvaro Brey 2 жил өмнө
parent
commit
a8750d3946

+ 0 - 7
app/src/main/java/com/owncloud/android/ui/fragment/GalleryFragment.java

@@ -35,7 +35,6 @@ import android.view.MenuItem;
 import android.view.View;
 import android.view.ViewGroup;
 
-import com.nextcloud.utils.view.FastScrollUtils;
 import com.owncloud.android.R;
 import com.owncloud.android.datamodel.FileDataStorageManager;
 import com.owncloud.android.datamodel.OCFile;
@@ -48,7 +47,6 @@ import com.owncloud.android.ui.adapter.CommonOCFileListAdapterInterface;
 import com.owncloud.android.ui.adapter.GalleryAdapter;
 import com.owncloud.android.ui.asynctasks.GallerySearchTask;
 import com.owncloud.android.ui.events.ChangeMenuEvent;
-import com.owncloud.android.ui.fragment.util.GalleryFastScrollViewHelper;
 
 import javax.inject.Inject;
 
@@ -76,7 +74,6 @@ public class GalleryFragment extends OCFileListFragment implements GalleryFragme
     private GalleryFragmentBottomSheetDialog galleryFragmentBottomSheetDialog;
 
     @Inject FileDataStorageManager fileDataStorageManager;
-    @Inject FastScrollUtils fastScrollUtils;
     private final int maxColumnSizeLandscape = 5;
     private final int maxColumnSizePortrait = 2;
     private int columnSize;
@@ -159,10 +156,6 @@ public class GalleryFragment extends OCFileListFragment implements GalleryFragme
         GridLayoutManager layoutManager = new GridLayoutManager(getContext(), 1);
         mAdapter.setLayoutManager(layoutManager);
         getRecyclerView().setLayoutManager(layoutManager);
-
-        fastScrollUtils.applyFastScroll(
-            getRecyclerView(),
-            new GalleryFastScrollViewHelper(getRecyclerView(), mAdapter));
     }
 
     @Override