mirror of
https://github.com/libre-tube/LibreTube.git
synced 2025-04-28 16:00:31 +05:30
fix: missing horizontal padding for player in landscape
This commit is contained in:
parent
c7f4cbc312
commit
22c44c32cc
@ -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)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user