Fixed toolbar and fab behavior #113.

This commit is contained in:
Amine 2017-11-13 19:35:14 +01:00
parent 7b5246ebf1
commit 37b2c5c2df
3 changed files with 6 additions and 2 deletions

View File

@ -1,3 +1,7 @@
**master**
- Fixed fab and toolbar issue (#113)
**1.5.4.11** **1.5.4.11**
- Hiding FABs on scroll. - Hiding FABs on scroll.

View File

@ -114,7 +114,7 @@ class ReaderActivity : AppCompatActivity() {
if (scrollY > oldScrollY) { if (scrollY > oldScrollY) {
fab.hide() fab.hide()
} else { } else {
fab.show() if (mFloatingToolbar.isShowing) mFloatingToolbar.hide() else fab.show()
} }
}) })
} }

View File

@ -1,7 +1,7 @@
// Top-level build file where you can add configuration options common to all sub-projects/modules. // Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript { buildscript {
ext.kotlin_version = '1.1.51' ext.kotlin_version = '1.1.60'
repositories { repositories {
jcenter() jcenter()
google() google()