Ensure when we start the calling activity that we turn the screen on.

This commit is contained in:
Alex Hart
2025-12-16 15:21:20 -04:00
committed by jeffrey-signal
parent 3508269c17
commit 9aa4797792

View File

@@ -136,8 +136,10 @@ class WebRtcCallActivity : BaseActivity(), SafetyNumberChangeDialog.Callback, Re
if (Build.VERSION.SDK_INT >= 27) {
setShowWhenLocked(true)
setTurnScreenOn(true)
} else {
window.addFlags(WindowManager.LayoutParams.FLAG_SHOW_WHEN_LOCKED)
@Suppress("DEPRECATION")
window.addFlags(WindowManager.LayoutParams.FLAG_SHOW_WHEN_LOCKED or WindowManager.LayoutParams.FLAG_TURN_SCREEN_ON)
}
super.onCreate(savedInstanceState)