style(banner): 배너 ktlint 지적을 정리한다
Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-openagent) Co-authored-by: Sisyphus <clio-agent@sisyphuslabs.ai>
This commit is contained in:
@@ -371,7 +371,6 @@ class BannerViewTest {
|
||||
listener.onScrollStateChanged(findViewById(R.id.rv_banner), state)
|
||||
}
|
||||
|
||||
|
||||
private fun BannerView.setCurrentPositionForTest(position: Int) {
|
||||
BannerView::class.java.getDeclaredField("currentAdapterPosition").apply {
|
||||
isAccessible = true
|
||||
@@ -379,7 +378,12 @@ class BannerViewTest {
|
||||
}
|
||||
BannerView::class.java.getDeclaredField("currentIndex").apply {
|
||||
isAccessible = true
|
||||
setInt(this@setCurrentPositionForTest, requireNotNull(findViewById<RecyclerView>(R.id.rv_banner).adapter as? BannerAdapter).toRealIndex(position))
|
||||
setInt(
|
||||
this@setCurrentPositionForTest,
|
||||
requireNotNull(
|
||||
findViewById<RecyclerView>(R.id.rv_banner).adapter as? BannerAdapter
|
||||
).toRealIndex(position)
|
||||
)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user