MainActivity: apply existing ViewPager2Fix

This commit is contained in:
Alibek Omarov 2020-05-03 03:20:54 +03:00
parent 1fb49c625c
commit 67f1ad8286
1 changed files with 2 additions and 1 deletions

View File

@ -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
}
}
}