mirror of
https://github.com/Michatec/michas-droid.git
synced 2026-05-31 02:12:42 +02:00
- Updated the ScreenActivity.kt
- Some settings updated - Fix some bugs
This commit is contained in:
@@ -283,13 +283,15 @@ class TabsFragment: ScreenFragment() {
|
||||
}
|
||||
this.sectionsList = sectionsList
|
||||
|
||||
val lastContentHeight = -1
|
||||
var lastContentHeight = -1
|
||||
var initial = true
|
||||
content.viewTreeObserver.addOnGlobalLayoutListener {
|
||||
if (this.view != null) {
|
||||
val initial = true
|
||||
val contentHeight = content.height
|
||||
if (lastContentHeight != contentHeight) {
|
||||
if (initial) {
|
||||
lastContentHeight = contentHeight
|
||||
if (initial) {
|
||||
initial = false
|
||||
sectionsList.layoutParams.height = if (showSections) contentHeight else 0
|
||||
sectionsList.visibility = if (showSections) View.VISIBLE else View.GONE
|
||||
sectionsList.requestLayout()
|
||||
|
||||
Reference in New Issue
Block a user