mirror of
https://github.com/tachiyomiorg/tachiyomi.git
synced 2024-12-24 05:51:53 +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,12 +129,14 @@ class FilterBottomSheet @JvmOverloads constructor(context: Context, attrs: Attri
|
|||||||
}
|
}
|
||||||
)
|
)
|
||||||
|
|
||||||
if (context.resources.configuration.orientation == Configuration.ORIENTATION_LANDSCAPE) {
|
post {
|
||||||
second_layout.removeView(view_options)
|
if (second_layout.width + first_layout.width + 20.dpToPx < width) {
|
||||||
second_layout.removeView(reorder_filters)
|
second_layout.removeView(view_options)
|
||||||
first_layout.addView(reorder_filters)
|
second_layout.removeView(reorder_filters)
|
||||||
first_layout.addView(view_options)
|
first_layout.addView(reorder_filters)
|
||||||
second_layout.gone()
|
first_layout.addView(view_options)
|
||||||
|
second_layout.gone()
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
sheetBehavior?.hide()
|
sheetBehavior?.hide()
|
||||||
|
Loading…
Reference in New Issue
Block a user