upgrade ktlint plugin to 12.0.3 (#4169)
There are some new rules, I think they mostly make sense, except for the max line length which I had to disable because we are over it in a lot of places. --------- Co-authored-by: Goooler <wangzongler@gmail.com>
This commit is contained in:
parent
33cd6fdb98
commit
5192fb08a5
215 changed files with 2813 additions and 1177 deletions
|
|
@ -14,7 +14,8 @@ class ImagePagerAdapter(
|
|||
) : ViewMediaAdapter(activity) {
|
||||
|
||||
private var didTransition = false
|
||||
private val fragments = MutableList<WeakReference<ViewMediaFragment>?>(attachments.size) { null }
|
||||
private val fragments =
|
||||
MutableList<WeakReference<ViewMediaFragment>?>(attachments.size) { null }
|
||||
|
||||
override fun getItemCount() = attachments.size
|
||||
|
||||
|
|
|
|||
|
|
@ -20,7 +20,9 @@ import androidx.fragment.app.FragmentActivity
|
|||
import com.keylesspalace.tusky.TabData
|
||||
import com.keylesspalace.tusky.util.CustomFragmentStateAdapter
|
||||
|
||||
class MainPagerAdapter(var tabs: List<TabData>, activity: FragmentActivity) : CustomFragmentStateAdapter(activity) {
|
||||
class MainPagerAdapter(var tabs: List<TabData>, activity: FragmentActivity) : CustomFragmentStateAdapter(
|
||||
activity
|
||||
) {
|
||||
|
||||
override fun createFragment(position: Int): Fragment {
|
||||
val tab = tabs[position]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue