Skip to content
GitLab
Explore
Projects
Groups
Topics
Snippets
Projects
Groups
Topics
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
BC
public
liblinphone
Commits
ce7beec2
Commit
ce7beec2
authored
6 days ago
by
Sylvain Berfini
Browse files
Options
Download
Patches
Plain Diff
Stop ringtone when screen is turned OFF
parent
868d2990
master
feature/swift_push_unit_tests
fix/ios_destroy_platform_helper_on_core_stop
fix/workaround_for_sip_simple_messages_with_bad_to_header
1 merge request
!3490
Stop ringtone when screen is turned OFF
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
wrappers/java/classes/org/linphone/core/tools/receiver/InteractivityReceiver.java
+2
-0
...g/linphone/core/tools/receiver/InteractivityReceiver.java
with
2 additions
and
0 deletions
wrappers/java/classes/org/linphone/core/tools/receiver/InteractivityReceiver.java
+
2
−
0
View file @
ce7beec2
...
...
@@ -24,6 +24,7 @@ import android.content.Context;
import
android.content.Intent
;
import
org.linphone.core.tools.Log
;
import
org.linphone.core.tools.AndroidPlatformHelper
;
/*
* Purpose of this receiver is to disable keep alives when screen is off
...
...
@@ -38,6 +39,7 @@ public class InteractivityReceiver extends BroadcastReceiver {
Log
.
i
(
"[Platform Helper] [Interactivity Receiver] Device screen is ON"
);
}
else
if
(
action
.
equalsIgnoreCase
(
Intent
.
ACTION_SCREEN_OFF
))
{
Log
.
i
(
"[Platform Helper] [Interactivity Receiver] Device screen is OFF"
);
if
(
AndroidPlatformHelper
.
isReady
())
AndroidPlatformHelper
.
instance
().
stopRinging
();
}
}
}
This diff is collapsed.
Click to expand it.
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment
Menu
Explore
Projects
Groups
Topics
Snippets