refactor: Move IconUtils to core.ui (#744)
This commit is contained in:
parent
892663cab3
commit
dd0e01a15c
|
@ -109,6 +109,7 @@ import app.pachli.core.network.model.Account
|
|||
import app.pachli.core.network.model.Notification
|
||||
import app.pachli.core.preferences.PrefKeys
|
||||
import app.pachli.core.ui.extensions.reduceSwipeSensitivity
|
||||
import app.pachli.core.ui.makeIcon
|
||||
import app.pachli.databinding.ActivityMainBinding
|
||||
import app.pachli.db.DraftsAlert
|
||||
import app.pachli.interfaces.ActionButtonActivity
|
||||
|
@ -117,7 +118,6 @@ import app.pachli.updatecheck.UpdateCheck
|
|||
import app.pachli.usecase.DeveloperToolsUseCase
|
||||
import app.pachli.usecase.LogoutUsecase
|
||||
import app.pachli.util.getDimension
|
||||
import app.pachli.util.makeIcon
|
||||
import app.pachli.util.updateShortcut
|
||||
import at.connyduck.calladapter.networkresult.fold
|
||||
import com.bumptech.glide.Glide
|
||||
|
|
|
@ -23,8 +23,8 @@ import app.pachli.core.activity.emojify
|
|||
import app.pachli.core.common.extensions.visible
|
||||
import app.pachli.core.network.model.Emoji
|
||||
import app.pachli.core.ui.BindingHolder
|
||||
import app.pachli.core.ui.makeIcon
|
||||
import app.pachli.databinding.ItemPollBinding
|
||||
import app.pachli.util.makeIcon
|
||||
import app.pachli.viewdata.PollOptionViewData
|
||||
import app.pachli.viewdata.buildDescription
|
||||
import app.pachli.viewdata.calculatePercent
|
||||
|
|
|
@ -37,6 +37,7 @@ 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.core.ui.makeIcon
|
||||
import app.pachli.core.ui.setClickableMentions
|
||||
import app.pachli.core.ui.setClickableText
|
||||
import app.pachli.interfaces.StatusActionListener
|
||||
|
@ -47,7 +48,6 @@ import app.pachli.util.expandTouchSizeToFillRow
|
|||
import app.pachli.util.getFormattedDescription
|
||||
import app.pachli.util.getRelativeTimeSpanString
|
||||
import app.pachli.util.iconResource
|
||||
import app.pachli.util.makeIcon
|
||||
import app.pachli.view.MediaPreviewImageView
|
||||
import app.pachli.view.MediaPreviewLayout
|
||||
import app.pachli.view.PollView
|
||||
|
|
|
@ -94,6 +94,7 @@ import app.pachli.core.preferences.AppTheme
|
|||
import app.pachli.core.preferences.PrefKeys
|
||||
import app.pachli.core.preferences.SharedPreferencesRepository
|
||||
import app.pachli.core.ui.extensions.getErrorString
|
||||
import app.pachli.core.ui.makeIcon
|
||||
import app.pachli.databinding.ActivityComposeBinding
|
||||
import app.pachli.util.PickMediaFiles
|
||||
import app.pachli.util.getInitialLanguages
|
||||
|
@ -101,7 +102,6 @@ import app.pachli.util.getLocaleList
|
|||
import app.pachli.util.getMediaSize
|
||||
import app.pachli.util.highlightSpans
|
||||
import app.pachli.util.iconRes
|
||||
import app.pachli.util.makeIcon
|
||||
import app.pachli.util.modernLanguageCode
|
||||
import app.pachli.util.setDrawableTint
|
||||
import com.canhub.cropper.CropImage
|
||||
|
|
|
@ -61,6 +61,7 @@ import app.pachli.core.network.model.Status
|
|||
import app.pachli.core.ui.ActionButtonScrollListener
|
||||
import app.pachli.core.ui.BackgroundMessage
|
||||
import app.pachli.core.ui.extensions.getErrorString
|
||||
import app.pachli.core.ui.makeIcon
|
||||
import app.pachli.databinding.FragmentTimelineNotificationsBinding
|
||||
import app.pachli.fragment.SFragment
|
||||
import app.pachli.interfaces.AccountActionListener
|
||||
|
@ -69,7 +70,6 @@ import app.pachli.interfaces.StatusActionListener
|
|||
import app.pachli.util.ListStatusAccessibilityDelegate
|
||||
import app.pachli.util.UserRefreshState
|
||||
import app.pachli.util.asRefreshState
|
||||
import app.pachli.util.makeIcon
|
||||
import app.pachli.viewdata.NotificationViewData
|
||||
import at.connyduck.sparkbutton.helpers.Utils
|
||||
import com.google.android.material.color.MaterialColors
|
||||
|
|
|
@ -47,6 +47,7 @@ import app.pachli.core.network.model.Account
|
|||
import app.pachli.core.network.model.Status
|
||||
import app.pachli.core.network.retrofit.MastodonApi
|
||||
import app.pachli.core.preferences.PrefKeys
|
||||
import app.pachli.core.ui.makeIcon
|
||||
import app.pachli.settings.listPreference
|
||||
import app.pachli.settings.makePreferenceScreen
|
||||
import app.pachli.settings.preference
|
||||
|
@ -56,7 +57,6 @@ import app.pachli.util.getInitialLanguages
|
|||
import app.pachli.util.getLocaleList
|
||||
import app.pachli.util.getPachliDisplayName
|
||||
import app.pachli.util.iconRes
|
||||
import app.pachli.util.makeIcon
|
||||
import com.github.michaelbull.result.getOrElse
|
||||
import com.google.android.material.snackbar.Snackbar
|
||||
import com.mikepenz.iconics.IconicsDrawable
|
||||
|
|
|
@ -35,6 +35,7 @@ import app.pachli.core.preferences.AppTheme
|
|||
import app.pachli.core.preferences.AppTheme.Companion.APP_THEME_DEFAULT
|
||||
import app.pachli.core.preferences.PrefKeys
|
||||
import app.pachli.core.preferences.SharedPreferencesRepository
|
||||
import app.pachli.core.ui.makeIcon
|
||||
import app.pachli.settings.emojiPreference
|
||||
import app.pachli.settings.listPreference
|
||||
import app.pachli.settings.makePreferenceScreen
|
||||
|
@ -47,7 +48,6 @@ import app.pachli.updatecheck.UpdateCheckResult.AT_LATEST
|
|||
import app.pachli.updatecheck.UpdateNotificationFrequency
|
||||
import app.pachli.util.LocaleManager
|
||||
import app.pachli.util.deserialize
|
||||
import app.pachli.util.makeIcon
|
||||
import app.pachli.util.serialize
|
||||
import app.pachli.view.FontFamilyDialogFragment
|
||||
import com.mikepenz.iconics.IconicsDrawable
|
||||
|
|
|
@ -14,7 +14,7 @@
|
|||
* see <http://www.gnu.org/licenses>.
|
||||
*/
|
||||
|
||||
package app.pachli.util
|
||||
package app.pachli.core.ui
|
||||
|
||||
import android.content.Context
|
||||
import android.graphics.Color
|
Loading…
Reference in New Issue