diff --git a/app/src/main/java/app/pachli/components/account/media/AccountMediaGridAdapter.kt b/app/src/main/java/app/pachli/components/account/media/AccountMediaGridAdapter.kt index f25f8290a..8837a5a27 100644 --- a/app/src/main/java/app/pachli/components/account/media/AccountMediaGridAdapter.kt +++ b/app/src/main/java/app/pachli/components/account/media/AccountMediaGridAdapter.kt @@ -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 { val binding = ItemAccountMediaBinding.inflate(LayoutInflater.from(parent.context), parent, false) diff --git a/app/src/main/java/app/pachli/components/instancemute/adapter/DomainMutesAdapter.kt b/app/src/main/java/app/pachli/components/instancemute/adapter/DomainMutesAdapter.kt index b41e6ced5..d0f8fb7fb 100644 --- a/app/src/main/java/app/pachli/components/instancemute/adapter/DomainMutesAdapter.kt +++ b/app/src/main/java/app/pachli/components/instancemute/adapter/DomainMutesAdapter.kt @@ -11,7 +11,7 @@ class DomainMutesAdapter( private val actionListener: InstanceActionListener, ) : RecyclerView.Adapter>() { - var instances: MutableList = mutableListOf() + private var instances: MutableList = mutableListOf() var bottomLoading: Boolean = false override fun onCreateViewHolder(parent: ViewGroup, viewType: Int): BindingHolder { diff --git a/app/src/main/java/app/pachli/components/search/SearchViewModel.kt b/app/src/main/java/app/pachli/components/search/SearchViewModel.kt index 793b5b801..dac32b31b 100644 --- a/app/src/main/java/app/pachli/components/search/SearchViewModel.kt +++ b/app/src/main/java/app/pachli/components/search/SearchViewModel.kt @@ -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 = mutableListOf() diff --git a/checks/src/main/java/app/pachli/lint/checks/ContextCompatGetDrawableDetector.kt b/checks/src/main/java/app/pachli/lint/checks/ContextCompatGetDrawableDetector.kt index 8bb35dca8..ce1eac94e 100644 --- a/checks/src/main/java/app/pachli/lint/checks/ContextCompatGetDrawableDetector.kt +++ b/checks/src/main/java/app/pachli/lint/checks/ContextCompatGetDrawableDetector.kt @@ -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.") diff --git a/core/ui/src/main/kotlin/com/twitter/twittertext/Extractor.kt b/core/ui/src/main/kotlin/com/twitter/twittertext/Extractor.kt index ef46a7056..ba5878c04 100644 --- a/core/ui/src/main/kotlin/com/twitter/twittertext/Extractor.kt +++ b/core/ui/src/main/kotlin/com/twitter/twittertext/Extractor.kt @@ -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