MainActivity: apply existing ViewPager2Fix
This commit is contained in:
parent
01963d8f9b
commit
223abe8c08
|
@ -154,6 +154,7 @@ class MainActivity : BottomSheetActivity(), ActionButtonActivity, HasAndroidInje
|
|||
}
|
||||
window.statusBarColor = Color.TRANSPARENT // don't draw a status bar, the DrawerLayout and the MaterialDrawerLayout have their own
|
||||
setContentView(R.layout.activity_main)
|
||||
ViewPager2Fix.reduceVelocity(viewPager, 2.0f);
|
||||
composeButton.setOnClickListener {
|
||||
val composeIntent = Intent(applicationContext, ComposeActivity::class.java)
|
||||
startActivity(composeIntent)
|
||||
|
@ -652,4 +653,4 @@ private var AbstractDrawerItem<*, *>.onClick: () -> Unit
|
|||
value()
|
||||
false
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue