mirror of
https://github.com/bggRGjQaUbCoE/PiliPlus.git
synced 2026-06-08 12:04:50 +08:00
custom angle degree on android
Signed-off-by: dom <githubaccount56556@proton.me>
This commit is contained in:
@@ -487,7 +487,9 @@ class PlPlayerController with BlockConfigMixin {
|
||||
PlPlayerController._() {
|
||||
if (PlatformUtils.isMobile) {
|
||||
_orientationListener = NativeDeviceOrientationPlatform.instance
|
||||
.onOrientationChanged(useSensor: Platform.isAndroid)
|
||||
.onOrientationChanged(
|
||||
angleDegrees: Platform.isAndroid ? Pref.angleDegrees : null,
|
||||
)
|
||||
.listen(_onOrientationChanged);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user