MainActivity: apply existing ViewPager2Fix

main
Alibek Omarov 5 years ago
parent 01963d8f9b
commit 223abe8c08
  1. 3
      app/src/main/java/com/keylesspalace/tusky/MainActivity.kt

@ -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…
Cancel
Save