change: Mark some properties private
This commit is contained in:
parent
bf474a5eef
commit
2d0cf6c17e
|
@ -49,7 +49,7 @@ class AccountMediaGridAdapter(
|
||||||
private val playableIcon = AppCompatResources.getDrawable(context, R.drawable.ic_play_indicator)
|
private val playableIcon = AppCompatResources.getDrawable(context, R.drawable.ic_play_indicator)
|
||||||
private val mediaHiddenDrawable = AppCompatResources.getDrawable(context, R.drawable.ic_hide_media_24dp)
|
private val mediaHiddenDrawable = AppCompatResources.getDrawable(context, R.drawable.ic_hide_media_24dp)
|
||||||
|
|
||||||
val defaultSize = context.resources.getDimensionPixelSize(app.pachli.core.designsystem.R.dimen.account_media_grid_default)
|
private val defaultSize = context.resources.getDimensionPixelSize(app.pachli.core.designsystem.R.dimen.account_media_grid_default)
|
||||||
|
|
||||||
override fun onCreateViewHolder(parent: ViewGroup, viewType: Int): BindingHolder<ItemAccountMediaBinding> {
|
override fun onCreateViewHolder(parent: ViewGroup, viewType: Int): BindingHolder<ItemAccountMediaBinding> {
|
||||||
val binding = ItemAccountMediaBinding.inflate(LayoutInflater.from(parent.context), parent, false)
|
val binding = ItemAccountMediaBinding.inflate(LayoutInflater.from(parent.context), parent, false)
|
||||||
|
|
|
@ -11,7 +11,7 @@ class DomainMutesAdapter(
|
||||||
private val actionListener: InstanceActionListener,
|
private val actionListener: InstanceActionListener,
|
||||||
) : RecyclerView.Adapter<BindingHolder<ItemMutedDomainBinding>>() {
|
) : RecyclerView.Adapter<BindingHolder<ItemMutedDomainBinding>>() {
|
||||||
|
|
||||||
var instances: MutableList<String> = mutableListOf()
|
private var instances: MutableList<String> = mutableListOf()
|
||||||
var bottomLoading: Boolean = false
|
var bottomLoading: Boolean = false
|
||||||
|
|
||||||
override fun onCreateViewHolder(parent: ViewGroup, viewType: Int): BindingHolder<ItemMutedDomainBinding> {
|
override fun onCreateViewHolder(parent: ViewGroup, viewType: Int): BindingHolder<ItemMutedDomainBinding> {
|
||||||
|
|
|
@ -54,8 +54,8 @@ class SearchViewModel @Inject constructor(
|
||||||
get() = accountManager.activeAccount
|
get() = accountManager.activeAccount
|
||||||
|
|
||||||
val mediaPreviewEnabled = activeAccount?.mediaPreviewEnabled ?: false
|
val mediaPreviewEnabled = activeAccount?.mediaPreviewEnabled ?: false
|
||||||
val alwaysShowSensitiveMedia = activeAccount?.alwaysShowSensitiveMedia ?: false
|
private val alwaysShowSensitiveMedia = activeAccount?.alwaysShowSensitiveMedia ?: false
|
||||||
val alwaysOpenSpoiler = activeAccount?.alwaysOpenSpoiler ?: false
|
private val alwaysOpenSpoiler = activeAccount?.alwaysOpenSpoiler ?: false
|
||||||
|
|
||||||
private val loadedStatuses: MutableList<StatusViewData> = mutableListOf()
|
private val loadedStatuses: MutableList<StatusViewData> = mutableListOf()
|
||||||
|
|
||||||
|
|
|
@ -35,7 +35,7 @@ import org.jetbrains.uast.UCallExpression
|
||||||
class ContextCompatGetDrawableDetector : Detector(), SourceCodeScanner {
|
class ContextCompatGetDrawableDetector : Detector(), SourceCodeScanner {
|
||||||
override fun getApplicableMethodNames() = listOf(METHOD_GET_DRAWABLE)
|
override fun getApplicableMethodNames() = listOf(METHOD_GET_DRAWABLE)
|
||||||
|
|
||||||
val fix = LintFix.create()
|
private val fix = LintFix.create()
|
||||||
.name("Replace with `AppCompatResources.getDrawable`")
|
.name("Replace with `AppCompatResources.getDrawable`")
|
||||||
.replace()
|
.replace()
|
||||||
.text("ContextCompat.")
|
.text("ContextCompat.")
|
||||||
|
|
|
@ -269,7 +269,7 @@ open class Extractor {
|
||||||
/**
|
/**
|
||||||
* The maximum url length that the Twitter backend supports.
|
* The maximum url length that the Twitter backend supports.
|
||||||
*/
|
*/
|
||||||
const val MAX_URL_LENGTH = 4096
|
private const val MAX_URL_LENGTH = 4096
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The backend adds http:// for normal links and https to *.twitter.com URLs
|
* The backend adds http:// for normal links and https to *.twitter.com URLs
|
||||||
|
|
Loading…
Reference in New Issue