From f967a36cd18f6bc0919eb834cf0d9dac9500f1bc Mon Sep 17 00:00:00 2001 From: Austin H Date: Sat, 10 Aug 2019 20:07:25 -0400 Subject: [PATCH] Update OrangeSqueezeReceiver.java While testing I noticed some track were missed b/c I only track one of the two major intent broadcasts. --- .../java/com/adam/aslfms/receiver/OrangeSqueezeReceiver.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/com/adam/aslfms/receiver/OrangeSqueezeReceiver.java b/app/src/main/java/com/adam/aslfms/receiver/OrangeSqueezeReceiver.java index c182df57..68b1c97c 100644 --- a/app/src/main/java/com/adam/aslfms/receiver/OrangeSqueezeReceiver.java +++ b/app/src/main/java/com/adam/aslfms/receiver/OrangeSqueezeReceiver.java @@ -47,7 +47,7 @@ protected void parseIntent(Context ctx, String action, Bundle bundle) { ctx, APP_NAME, APP_PACKAGE, null, false); setMusicAPI(musicAPI); - if (action.equals(ACTION_ORANGE_METACHANGED)) { + if (action.equals(ACTION_ORANGE_PLAYSTATECHANGED) || action.equals((ACTION_ORANGE_METACHANGED))){ boolean isPlaying = bundle.getBoolean("isplaying"); boolean isPaused = bundle.getBoolean("ispaused"); if (isPaused) {