Commit 3fc7de53 authored by Eugene Shapovalov's avatar Eugene Shapovalov 💬

Removed delay on closing/opening navigation drawer.

parent 9aa1d19b
......@@ -111,10 +111,8 @@ class MainActivity : BaseActivity(), LaunchView {
//region nav drawer
private fun openNavDrawer(open: Boolean) {
drawerLayout.postDelayed({
if (open) drawerLayout.openDrawer(GravityCompat.START)
else drawerLayout.closeDrawer(GravityCompat.START)
}, 150)
if (open) drawerLayout.openDrawer(GravityCompat.START)
else drawerLayout.closeDrawer(GravityCompat.START)
}
private fun enableNavDrawer(enable: Boolean) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment