update ktlint plugin to 11.3.1, format code (#3442)
This commit is contained in:
parent
774d79d666
commit
d839f18267
141 changed files with 589 additions and 428 deletions
|
|
@ -309,7 +309,6 @@ abstract class SFragment : Fragment(), Injectable {
|
|||
}
|
||||
|
||||
private fun onMute(accountId: String, accountUsername: String) {
|
||||
|
||||
showMuteAccountDialog(this.requireActivity(), accountUsername) { notifications: Boolean?, duration: Int? ->
|
||||
lifecycleScope.launch {
|
||||
timelineCases.mute(accountId, notifications == true, duration)
|
||||
|
|
@ -339,7 +338,8 @@ abstract class SFragment : Fragment(), Injectable {
|
|||
view.transitionName = url
|
||||
val options = ActivityOptionsCompat.makeSceneTransitionAnimation(
|
||||
requireActivity(),
|
||||
view, url
|
||||
view,
|
||||
url
|
||||
)
|
||||
startActivity(intent, options.toBundle())
|
||||
} else {
|
||||
|
|
|
|||
|
|
@ -207,7 +207,7 @@ class ViewImageFragment : ViewMediaFragment() {
|
|||
.dontAnimate()
|
||||
.onlyRetrieveFromCache(true)
|
||||
.let {
|
||||
if (previewUrl != null)
|
||||
if (previewUrl != null) {
|
||||
it.thumbnail(
|
||||
glide
|
||||
.load(previewUrl)
|
||||
|
|
@ -216,7 +216,9 @@ class ViewImageFragment : ViewMediaFragment() {
|
|||
.centerInside()
|
||||
.addListener(ImageRequestListener(true, isThumbnailRequest = true))
|
||||
)
|
||||
else it
|
||||
} else {
|
||||
it
|
||||
}
|
||||
}
|
||||
// Request image from the network on fail load image from cache
|
||||
.error(
|
||||
|
|
|
|||
|
|
@ -42,6 +42,7 @@ abstract class ViewMediaFragment : Fragment() {
|
|||
|
||||
@JvmStatic
|
||||
protected val ARG_ATTACHMENT = "attach"
|
||||
|
||||
@JvmStatic
|
||||
protected val ARG_SINGLE_IMAGE_URL = "singleImageUrl"
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue