mirror of
https://github.com/SimpleMobileTools/Simple-Dialer.git
synced 2025-02-21 22:07:44 +01:00
lets show the incoming call full screen only if the screen is off
This commit is contained in:
parent
2cb0afc5eb
commit
6afdcbf705
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user