refactor: Move CardViewMode to core.preferences (#729)
This commit is contained in:
parent
e4a065ca9f
commit
5dd1b9a2f9
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -17,6 +17,8 @@
|
|||
|
||||
package app.pachli.util
|
||||
|
||||
import app.pachli.core.preferences.CardViewMode
|
||||
|
||||
data class StatusDisplayOptions(
|
||||
@get:JvmName("animateAvatars")
|
||||
val animateAvatars: Boolean = false,
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
package app.pachli.util
|
||||
package app.pachli.core.preferences
|
||||
|
||||
enum class CardViewMode {
|
||||
NONE,
|
Loading…
Reference in New Issue