mirror of
https://gitlab.futo.org/videostreaming/grayjay.git
synced 2026-05-18 13:52:39 +02:00
Compare commits
2 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 2787e29a07 | |||
| c77a4d08d6 |
+4
-2
@@ -388,11 +388,13 @@ class VideoDetailFragment() : MainFragment() {
|
||||
updateOrientation()
|
||||
}
|
||||
|
||||
val delayBeforeRemoveRotationLock = 800L
|
||||
|
||||
_landscapeOrientationListener = LandscapeOrientationListener(requireContext())
|
||||
{
|
||||
CoroutineScope(Dispatchers.Main).launch {
|
||||
// delay to make sure that the system auto rotate updates
|
||||
delay(300)
|
||||
delay(delayBeforeRemoveRotationLock)
|
||||
_lastSetOrientation = Configuration.ORIENTATION_LANDSCAPE
|
||||
updateOrientation()
|
||||
}
|
||||
@@ -401,7 +403,7 @@ class VideoDetailFragment() : MainFragment() {
|
||||
{
|
||||
CoroutineScope(Dispatchers.Main).launch {
|
||||
// delay to make sure that the system auto rotate updates
|
||||
delay(300)
|
||||
delay(delayBeforeRemoveRotationLock)
|
||||
_lastSetOrientation = Configuration.ORIENTATION_PORTRAIT
|
||||
updateOrientation()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user