Browse Source

OCFileListDelegate: remove unused theme utils

Signed-off-by: Álvaro Brey <alvaro.brey@nextcloud.com>
Álvaro Brey 2 years ago
parent
commit
6ae4ac22e7

+ 0 - 6
app/src/main/java/com/owncloud/android/ui/adapter/GalleryAdapter.kt

@@ -49,8 +49,6 @@ import com.owncloud.android.utils.DisplayUtils
 import com.owncloud.android.utils.FileSortOrder
 import com.owncloud.android.utils.FileSortOrder
 import com.owncloud.android.utils.FileStorageUtils
 import com.owncloud.android.utils.FileStorageUtils
 import com.owncloud.android.utils.MimeTypeUtil
 import com.owncloud.android.utils.MimeTypeUtil
-import com.owncloud.android.utils.theme.ThemeColorUtils
-import com.owncloud.android.utils.theme.ThemeDrawableUtils
 import com.owncloud.android.utils.theme.newm3.ViewThemeUtils
 import com.owncloud.android.utils.theme.newm3.ViewThemeUtils
 import me.zhanghai.android.fastscroll.PopupTextProvider
 import me.zhanghai.android.fastscroll.PopupTextProvider
 import java.util.Calendar
 import java.util.Calendar
@@ -63,8 +61,6 @@ class GalleryAdapter(
     ocFileListFragmentInterface: OCFileListFragmentInterface,
     ocFileListFragmentInterface: OCFileListFragmentInterface,
     preferences: AppPreferences,
     preferences: AppPreferences,
     transferServiceGetter: ComponentsGetter,
     transferServiceGetter: ComponentsGetter,
-    themeColorUtils: ThemeColorUtils,
-    themeDrawableUtils: ThemeDrawableUtils,
     viewThemeUtils: ViewThemeUtils
     viewThemeUtils: ViewThemeUtils
 ) : SectionedRecyclerViewAdapter<SectionedViewHolder>(), CommonOCFileListAdapterInterface, PopupTextProvider {
 ) : SectionedRecyclerViewAdapter<SectionedViewHolder>(), CommonOCFileListAdapterInterface, PopupTextProvider {
     var files: List<GalleryItems> = mutableListOf()
     var files: List<GalleryItems> = mutableListOf()
@@ -85,8 +81,6 @@ class GalleryAdapter(
             transferServiceGetter,
             transferServiceGetter,
             showMetadata = false,
             showMetadata = false,
             showShareAvatar = false,
             showShareAvatar = false,
-            themeColorUtils,
-            themeDrawableUtils,
             viewThemeUtils
             viewThemeUtils
         )
         )
     }
     }

+ 0 - 2
app/src/main/java/com/owncloud/android/ui/adapter/OCFileListAdapter.java

@@ -181,8 +181,6 @@ public class OCFileListAdapter extends RecyclerView.Adapter<RecyclerView.ViewHol
                                                         .getCapability(activity)
                                                         .getCapability(activity)
                                                         .getVersion()
                                                         .getVersion()
                                                         .isShareesOnDavSupported(),
                                                         .isShareesOnDavSupported(),
-                                                    themeColorUtils,
-                                                    themeDrawableUtils,
                                                     viewThemeUtils);
                                                     viewThemeUtils);
 
 
         // initialise thumbnails cache on background thread
         // initialise thumbnails cache on background thread

+ 0 - 4
app/src/main/java/com/owncloud/android/ui/adapter/OCFileListDelegate.kt

@@ -34,8 +34,6 @@ import com.owncloud.android.ui.activity.ComponentsGetter
 import com.owncloud.android.ui.fragment.SearchType
 import com.owncloud.android.ui.fragment.SearchType
 import com.owncloud.android.ui.interfaces.OCFileListFragmentInterface
 import com.owncloud.android.ui.interfaces.OCFileListFragmentInterface
 import com.owncloud.android.utils.DisplayUtils
 import com.owncloud.android.utils.DisplayUtils
-import com.owncloud.android.utils.theme.ThemeColorUtils
-import com.owncloud.android.utils.theme.ThemeDrawableUtils
 import com.owncloud.android.utils.theme.newm3.ViewThemeUtils
 import com.owncloud.android.utils.theme.newm3.ViewThemeUtils
 
 
 @Suppress("LongParameterList", "TooManyFunctions")
 @Suppress("LongParameterList", "TooManyFunctions")
@@ -50,8 +48,6 @@ class OCFileListDelegate(
     private val transferServiceGetter: ComponentsGetter,
     private val transferServiceGetter: ComponentsGetter,
     private val showMetadata: Boolean,
     private val showMetadata: Boolean,
     private var showShareAvatar: Boolean,
     private var showShareAvatar: Boolean,
-    private var themeColorUtils: ThemeColorUtils,
-    private var themeDrawableUtils: ThemeDrawableUtils,
     private var viewThemeUtils: ViewThemeUtils
     private var viewThemeUtils: ViewThemeUtils
 ) {
 ) {
     private val checkedFiles: MutableSet<OCFile> = HashSet()
     private val checkedFiles: MutableSet<OCFile> = HashSet()

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

@@ -138,8 +138,6 @@ public class GalleryFragment extends OCFileListFragment implements GalleryFragme
                                       this,
                                       this,
                                       preferences,
                                       preferences,
                                       mContainerActivity,
                                       mContainerActivity,
-                                      themeColorUtils,
-                                      themeDrawableUtils,
                                       viewThemeUtils);
                                       viewThemeUtils);
 
 
         setRecyclerViewAdapter(mAdapter);
         setRecyclerViewAdapter(mAdapter);

+ 0 - 2
app/src/test/java/com/owncloud/android/ui/adapter/GalleryAdapterTest.kt

@@ -92,8 +92,6 @@ class GalleryAdapterTest {
             ocFileListFragmentInterface,
             ocFileListFragmentInterface,
             preferences,
             preferences,
             transferServiceGetter,
             transferServiceGetter,
-            themeColorUtils,
-            themeDrawableUtils,
             viewThemeUtils
             viewThemeUtils
         )
         )