OCFileListDelegate: remove unused theme utils

Signed-off-by: Álvaro Brey <alvaro.brey@nextcloud.com>
This commit is contained in:
Álvaro Brey 2022-09-15 21:00:46 +02:00
parent efaad0a6da
commit 6ae4ac22e7
No known key found for this signature in database
GPG key ID: 2585783189A62105
5 changed files with 0 additions and 16 deletions

View file

@ -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
) )
} }

View file

@ -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

View file

@ -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()

View file

@ -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);

View file

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