mirror of
https://github.com/nextcloud/android.git
synced 2024-11-26 15:15:51 +03:00
OCFileListDelegate: remove unused theme utils
Signed-off-by: Álvaro Brey <alvaro.brey@nextcloud.com>
This commit is contained in:
parent
efaad0a6da
commit
6ae4ac22e7
5 changed files with 0 additions and 16 deletions
|
@ -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
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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()
|
||||||
|
|
|
@ -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);
|
||||||
|
|
|
@ -92,8 +92,6 @@ class GalleryAdapterTest {
|
||||||
ocFileListFragmentInterface,
|
ocFileListFragmentInterface,
|
||||||
preferences,
|
preferences,
|
||||||
transferServiceGetter,
|
transferServiceGetter,
|
||||||
themeColorUtils,
|
|
||||||
themeDrawableUtils,
|
|
||||||
viewThemeUtils
|
viewThemeUtils
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue