lets show the incoming call full screen only if the screen is off

This commit is contained in:
tibbi 2022-05-17 14:06:32 +02:00
parent 2cb0afc5eb
commit 6afdcbf705

View File

@ -22,7 +22,7 @@ class CallService : InCallService() {
override fun onCallAdded(call: Call) {
super.onCallAdded(call)
if (!powerManager.isInteractive || call.isOutgoing()) {
if (!powerManager.isScreenOn || call.isOutgoing()) {
startActivity(CallActivity.getStartIntent(this))
}
CallManager.call = call