Commit ce6ff54b authored by Ludovic Fauvet's avatar Ludovic Fauvet

An intentfilter priority can't be higher than SYSTEM_HIGH_PRIORITY.

parent e78865cf
...@@ -117,7 +117,7 @@ public class AudioService extends Service { ...@@ -117,7 +117,7 @@ public class AudioService extends Service {
mEventManager = EventManager.getInstance(); mEventManager = EventManager.getInstance();
IntentFilter filter = new IntentFilter(); IntentFilter filter = new IntentFilter();
filter.setPriority(Integer.MAX_VALUE); filter.setPriority(IntentFilter.SYSTEM_HIGH_PRIORITY);
filter.addAction(ACTION_WIDGET_PLAY); filter.addAction(ACTION_WIDGET_PLAY);
filter.addAction(ACTION_WIDGET_STOP); filter.addAction(ACTION_WIDGET_STOP);
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment