refactor: Move CardViewMode to core.preferences (#729)

This commit is contained in:
Nik Clayton 2024-06-10 16:28:55 +02:00 committed by GitHub
parent e4a065ca9f
commit 5dd1b9a2f9
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
5 changed files with 6 additions and 3 deletions

View File

@ -35,8 +35,8 @@ import app.pachli.core.network.model.Attachment
import app.pachli.core.network.model.Emoji
import app.pachli.core.network.model.PreviewCardKind
import app.pachli.core.network.model.Status
import app.pachli.core.preferences.CardViewMode
import app.pachli.interfaces.StatusActionListener
import app.pachli.util.CardViewMode
import app.pachli.util.CompositeWithOpaqueBackground
import app.pachli.util.StatusDisplayOptions
import app.pachli.util.aspectRatios

View File

@ -10,10 +10,10 @@ import android.view.View
import app.pachli.R
import app.pachli.core.common.extensions.hide
import app.pachli.core.common.extensions.show
import app.pachli.core.preferences.CardViewMode
import app.pachli.core.ui.NoUnderlineURLSpan
import app.pachli.databinding.ItemStatusDetailedBinding
import app.pachli.interfaces.StatusActionListener
import app.pachli.util.CardViewMode
import app.pachli.util.StatusDisplayOptions
import app.pachli.util.createClickableText
import app.pachli.util.description

View File

@ -17,6 +17,8 @@
package app.pachli.util
import app.pachli.core.preferences.CardViewMode
data class StatusDisplayOptions(
@get:JvmName("animateAvatars")
val animateAvatars: Boolean = false,

View File

@ -24,6 +24,7 @@ import app.pachli.core.common.di.ApplicationScope
import app.pachli.core.data.repository.ServerRepository
import app.pachli.core.database.model.AccountEntity
import app.pachli.core.network.ServerOperation.ORG_JOINMASTODON_STATUSES_TRANSLATE
import app.pachli.core.preferences.CardViewMode
import app.pachli.core.preferences.PrefKeys
import app.pachli.core.preferences.SharedPreferencesRepository
import app.pachli.settings.AccountPreferenceDataStore

View File

@ -1,4 +1,4 @@
package app.pachli.util
package app.pachli.core.preferences
enum class CardViewMode {
NONE,