MindMachine: add immersive fullscreen and tap-to-reveal bars
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
package com.mindmachine.mvp.session
|
||||
|
||||
import com.mindmachine.mvp.domain.RuntimeState
|
||||
|
||||
fun shouldUseImmersiveFullscreen(isVisualMode: Boolean, runtimeState: RuntimeState): Boolean {
|
||||
return isVisualMode && (runtimeState == RuntimeState.COUNTDOWN || runtimeState == RuntimeState.RUNNING)
|
||||
}
|
||||
|
||||
fun shouldRevealSystemBarsOnTap(isVisualMode: Boolean, runtimeState: RuntimeState): Boolean {
|
||||
return shouldUseImmersiveFullscreen(isVisualMode, runtimeState)
|
||||
}
|
||||
Reference in New Issue
Block a user