mirror of
https://github.com/SimpleMobileTools/Simple-Dialer.git
synced 2025-02-23 14:57:39 +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) {
|
override fun onCallAdded(call: Call) {
|
||||||
super.onCallAdded(call)
|
super.onCallAdded(call)
|
||||||
if (!powerManager.isInteractive || call.isOutgoing()) {
|
if (!powerManager.isScreenOn || call.isOutgoing()) {
|
||||||
startActivity(CallActivity.getStartIntent(this))
|
startActivity(CallActivity.getStartIntent(this))
|
||||||
}
|
}
|
||||||
CallManager.call = call
|
CallManager.call = call
|
||||||
|
Loading…
x
Reference in New Issue
Block a user