fix: missing horizontal padding for player in landscape

This commit is contained in:
Bnyro 2023-11-19 09:48:44 +01:00
parent c7f4cbc312
commit 22c44c32cc

View File

@ -30,7 +30,9 @@ open class BaseActivity : AppCompatActivity() {
/** /**
* Whether the phone of the user has a cutout like a notch or not * Whether the phone of the user has a cutout like a notch or not
*/ */
var hasCutout = false val hasCutout by lazy {
WindowHelper.hasCutout(window.decorView.rootView)
}
override fun onCreate(savedInstanceState: Bundle?) { override fun onCreate(savedInstanceState: Bundle?) {
// set the app theme (e.g. Material You) // set the app theme (e.g. Material You)
@ -41,8 +43,6 @@ open class BaseActivity : AppCompatActivity() {
requestOrientationChange() requestOrientationChange()
hasCutout = WindowHelper.hasCutout(window.decorView)
super.onCreate(savedInstanceState) super.onCreate(savedInstanceState)
} }