Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Unverified Commit 5f8c4187 authored by Marvin W.'s avatar Marvin W. 🐿️
Browse files

Cast: Fix NsdManager leak

parent 833e2940
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -183,7 +183,7 @@ public class CastMediaRouteProvider extends MediaRouteProvider {
            return;
        }

        mNsdManager = (NsdManager)context.getSystemService(Context.NSD_SERVICE);
        mNsdManager = (NsdManager)context.getApplicationContext().getSystemService(Context.NSD_SERVICE);

        mDiscoveryListener = new NsdManager.DiscoveryListener() {