@qusaieilouti99/call-manager 0.1.90 → 0.1.91
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -943,6 +943,14 @@ object CallEngine {
|
|
|
943
943
|
)
|
|
944
944
|
|
|
945
945
|
// **SAMSUNG FIX**: Enhanced full-screen intent
|
|
946
|
+
|
|
947
|
+
// First, wake up the screen using PowerManager
|
|
948
|
+
val powerManager = context.getSystemService(Context.POWER_SERVICE) as PowerManager
|
|
949
|
+
val wakeLock = powerManager.newWakeLock(
|
|
950
|
+
PowerManager.SCREEN_BRIGHT_WAKE_LOCK or PowerManager.ACQUIRE_CAUSES_WAKEUP,
|
|
951
|
+
"CallEngine:IncomingCallWake"
|
|
952
|
+
)
|
|
953
|
+
wakeLock.acquire(5000) // 5 sec
|
|
946
954
|
val fullScreenIntent = Intent(context, CallActivity::class.java).apply {
|
|
947
955
|
addFlags(Intent.FLAG_ACTIVITY_NEW_TASK or Intent.FLAG_ACTIVITY_SINGLE_TOP)
|
|
948
956
|
putExtra("callId", callId)
|