Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
G
Grayjay
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
VideoStreaming
Grayjay
Commits
b75217f7
Commit
b75217f7
authored
1 year ago
by
Koen
Browse files
Options
Downloads
Patches
Plain Diff
Possible fix for AudioNoisyReceiver popping up 'App is not responding'.
parent
8ba8e535
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
app/src/main/java/com/futo/platformplayer/receivers/AudioNoisyReceiver.kt
+7
-2
7 additions, 2 deletions
...a/com/futo/platformplayer/receivers/AudioNoisyReceiver.kt
with
7 additions
and
2 deletions
app/src/main/java/com/futo/platformplayer/receivers/AudioNoisyReceiver.kt
+
7
−
2
View file @
b75217f7
...
...
@@ -4,13 +4,18 @@ import android.content.BroadcastReceiver
import
android.content.Context
import
android.content.Intent
import
com.futo.platformplayer.logging.Logger
import
com.futo.platformplayer.states.StateApp
import
kotlinx.coroutines.Dispatchers
import
kotlinx.coroutines.launch
class
AudioNoisyReceiver
:
BroadcastReceiver
()
{
override
fun
onReceive
(
context
:
Context
?,
intent
:
Intent
?)
{
Logger
.
i
(
TAG
,
"Audio Noisy received"
);
MediaControlReceiver
.
onPauseReceived
.
emit
();
StateApp
.
instance
.
scopeOrNull
?.
launch
(
Dispatchers
.
Main
)
{
Logger
.
i
(
TAG
,
"Audio Noisy received"
);
MediaControlReceiver
.
onPauseReceived
.
emit
();
}
}
companion
object
{
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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