change: Mark some properties private

This commit is contained in:
Nik Clayton 2024-04-30 15:57:23 +02:00
parent bf474a5eef
commit 2d0cf6c17e
5 changed files with 6 additions and 6 deletions

View File

@ -49,7 +49,7 @@ class AccountMediaGridAdapter(
private val playableIcon = AppCompatResources.getDrawable(context, R.drawable.ic_play_indicator)
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> {
val binding = ItemAccountMediaBinding.inflate(LayoutInflater.from(parent.context), parent, false)

View File

@ -11,7 +11,7 @@ class DomainMutesAdapter(
private val actionListener: InstanceActionListener,
) : RecyclerView.Adapter<BindingHolder<ItemMutedDomainBinding>>() {
var instances: MutableList<String> = mutableListOf()
private var instances: MutableList<String> = mutableListOf()
var bottomLoading: Boolean = false
override fun onCreateViewHolder(parent: ViewGroup, viewType: Int): BindingHolder<ItemMutedDomainBinding> {

View File

@ -54,8 +54,8 @@ class SearchViewModel @Inject constructor(
get() = accountManager.activeAccount
val mediaPreviewEnabled = activeAccount?.mediaPreviewEnabled ?: false
val alwaysShowSensitiveMedia = activeAccount?.alwaysShowSensitiveMedia ?: false
val alwaysOpenSpoiler = activeAccount?.alwaysOpenSpoiler ?: false
private val alwaysShowSensitiveMedia = activeAccount?.alwaysShowSensitiveMedia ?: false
private val alwaysOpenSpoiler = activeAccount?.alwaysOpenSpoiler ?: false
private val loadedStatuses: MutableList<StatusViewData> = mutableListOf()

View File

@ -35,7 +35,7 @@ import org.jetbrains.uast.UCallExpression
class ContextCompatGetDrawableDetector : Detector(), SourceCodeScanner {
override fun getApplicableMethodNames() = listOf(METHOD_GET_DRAWABLE)
val fix = LintFix.create()
private val fix = LintFix.create()
.name("Replace with `AppCompatResources.getDrawable`")
.replace()
.text("ContextCompat.")

View File

@ -269,7 +269,7 @@ open class Extractor {
/**
* 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