add ktlint plugin to project and apply default code style (#2209)
* add ktlint plugin to project and apply default code style * some manual adjustments, fix wildcard imports * update CONTRIBUTING.md * fix formatting
This commit is contained in:
parent
955267199e
commit
16ffcca748
227 changed files with 3933 additions and 3371 deletions
|
|
@ -20,9 +20,9 @@ import androidx.fragment.app.FragmentActivity
|
|||
import androidx.viewpager2.adapter.FragmentStateAdapter
|
||||
|
||||
abstract class CustomFragmentStateAdapter(
|
||||
private val activity: FragmentActivity
|
||||
): FragmentStateAdapter(activity) {
|
||||
private val activity: FragmentActivity
|
||||
) : FragmentStateAdapter(activity) {
|
||||
|
||||
fun getFragment(position: Int): Fragment?
|
||||
= activity.supportFragmentManager.findFragmentByTag("f" + getItemId(position))
|
||||
fun getFragment(position: Int): Fragment? =
|
||||
activity.supportFragmentManager.findFragmentByTag("f" + getItemId(position))
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue