mirror of
https://github.com/SimpleMobileTools/Simple-Dialer.git
synced 2025-06-05 21:49:23 +02:00
lets show the incoming call full screen only if the screen is off
This commit is contained in:
@ -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
|
||||
|
Reference in New Issue
Block a user