mirror of
https://github.com/inotia00/revanced-patches.git
synced 2025-06-12 21:27:43 +02:00
fix(YouTube - Overlay buttons): Overlay buttons do not disappear immediately when fullscreen button is clicked
This commit is contained in:
@ -106,7 +106,7 @@ public class PlayerControlsPatch {
|
||||
}
|
||||
}
|
||||
|
||||
private static void changeVisibilityNegatedImmediately() {
|
||||
public static void changeVisibilityNegatedImmediately() {
|
||||
// AlwaysRepeat.changeVisibilityNegatedImmediate();
|
||||
// CopyVideoUrl.changeVisibilityNegatedImmediate();
|
||||
// CopyVideoUrlTimestamp.changeVisibilityNegatedImmediate();
|
||||
|
@ -31,7 +31,7 @@ enum class BottomSheetState {
|
||||
onChange(currentBottomSheetState)
|
||||
}
|
||||
|
||||
@Volatile // value is read/write from different threads
|
||||
@Volatile // Read/write from different threads.
|
||||
private var currentBottomSheetState = CLOSED
|
||||
|
||||
/**
|
||||
|
@ -40,7 +40,7 @@ enum class LockModeState {
|
||||
onChange(value)
|
||||
}
|
||||
|
||||
@Volatile // value is read/write from different threads
|
||||
@Volatile // Read/write from different threads.
|
||||
private var currentLockModeState = LOCK_MODE_STATE_ENUM_UNKNOWN
|
||||
|
||||
/**
|
||||
|
@ -38,6 +38,7 @@ enum class PlayerControlsVisibility {
|
||||
currentPlayerControlsVisibility = value
|
||||
}
|
||||
|
||||
@Volatile // Read/write from different threads.
|
||||
private var currentPlayerControlsVisibility: PlayerControlsVisibility? = null
|
||||
}
|
||||
}
|
@ -71,7 +71,7 @@ enum class PlayerType {
|
||||
onChange(value)
|
||||
}
|
||||
|
||||
@Volatile // value is read/write from different threads
|
||||
@Volatile // Read/write from different threads.
|
||||
private var currentPlayerType = NONE
|
||||
|
||||
/**
|
||||
|
@ -31,7 +31,7 @@ enum class ShortsPlayerState {
|
||||
onChange(value)
|
||||
}
|
||||
|
||||
@Volatile // value is read/write from different threads
|
||||
@Volatile // Read/write from different threads.
|
||||
private var currentShortsPlayerState = CLOSED
|
||||
|
||||
/**
|
||||
|
@ -39,6 +39,7 @@ enum class VideoState {
|
||||
currentVideoState = value
|
||||
}
|
||||
|
||||
@Volatile // Read/write from different threads.
|
||||
private var currentVideoState: VideoState? = null
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user