mirror of
https://github.com/tachiyomiorg/tachiyomi.git
synced 2024-11-14 17:05:07 +01:00
Fix bottom sheet expansion in split screen
This commit is contained in:
parent
b38327c58a
commit
8f2b120454
@ -1,7 +1,6 @@
|
|||||||
package eu.kanade.tachiyomi.ui.library.filter
|
package eu.kanade.tachiyomi.ui.library.filter
|
||||||
|
|
||||||
import android.content.Context
|
import android.content.Context
|
||||||
import android.content.res.Configuration
|
|
||||||
import android.os.Parcelable
|
import android.os.Parcelable
|
||||||
import android.util.AttributeSet
|
import android.util.AttributeSet
|
||||||
import android.view.View
|
import android.view.View
|
||||||
@ -130,13 +129,15 @@ class FilterBottomSheet @JvmOverloads constructor(context: Context, attrs: Attri
|
|||||||
}
|
}
|
||||||
)
|
)
|
||||||
|
|
||||||
if (context.resources.configuration.orientation == Configuration.ORIENTATION_LANDSCAPE) {
|
post {
|
||||||
|
if (second_layout.width + first_layout.width + 20.dpToPx < width) {
|
||||||
second_layout.removeView(view_options)
|
second_layout.removeView(view_options)
|
||||||
second_layout.removeView(reorder_filters)
|
second_layout.removeView(reorder_filters)
|
||||||
first_layout.addView(reorder_filters)
|
first_layout.addView(reorder_filters)
|
||||||
first_layout.addView(view_options)
|
first_layout.addView(view_options)
|
||||||
second_layout.gone()
|
second_layout.gone()
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
sheetBehavior?.hide()
|
sheetBehavior?.hide()
|
||||||
expand_categories.setOnClickListener {
|
expand_categories.setOnClickListener {
|
||||||
|
Loading…
Reference in New Issue
Block a user