Unbreak KitKat

which was broken by c0adcdee
This commit is contained in:
Adrian Ulrich 2016-04-01 19:19:19 +02:00
parent fca3ff0389
commit 90a021f9fa

View File

@ -1144,6 +1144,9 @@ public final class PlaybackService extends Service
* Returns TRUE if the mirror link service has been registered
*/
private MirrorLinkMediaBrowserService getMirrorLinkCallback() {
if(Build.VERSION.SDK_INT < Build.VERSION_CODES.LOLLIPOP)
return null; // does not support mirrorlink
for (Object o : sCallbacks) {
if (o instanceof MirrorLinkMediaBrowserService) {
return (MirrorLinkMediaBrowserService)o;