Fixed bottom sheets on lower versions of android
This commit is contained in:
parent
975de673f0
commit
915df39365
2 changed files with 2 additions and 3 deletions
|
@ -578,8 +578,6 @@ open class MainActivity : BaseActivity(), DownloadServiceListener {
|
||||||
const val INTENT_SEARCH_QUERY = "query"
|
const val INTENT_SEARCH_QUERY = "query"
|
||||||
const val INTENT_SEARCH_FILTER = "filter"
|
const val INTENT_SEARCH_FILTER = "filter"
|
||||||
|
|
||||||
private const val URL_HELP = "https://tachiyomi.org/help/"
|
|
||||||
|
|
||||||
var usingBottomNav = true
|
var usingBottomNav = true
|
||||||
internal set
|
internal set
|
||||||
}
|
}
|
||||||
|
|
|
@ -255,6 +255,7 @@ inline fun View.updatePaddingRelative(
|
||||||
|
|
||||||
fun BottomSheetDialog.setEdgeToEdge(activity: Activity, layout: View, contentView: View,
|
fun BottomSheetDialog.setEdgeToEdge(activity: Activity, layout: View, contentView: View,
|
||||||
setTopMargin: Boolean) {
|
setTopMargin: Boolean) {
|
||||||
|
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.M)
|
||||||
window?.setBackgroundDrawable(null)
|
window?.setBackgroundDrawable(null)
|
||||||
val currentNightMode = activity.resources.configuration.uiMode and Configuration
|
val currentNightMode = activity.resources.configuration.uiMode and Configuration
|
||||||
.UI_MODE_NIGHT_MASK
|
.UI_MODE_NIGHT_MASK
|
||||||
|
|
Reference in a new issue