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

Commit 6d663b07 authored by Henry Fang's avatar Henry Fang
Browse files

Add unregisterClient in instance close.

bug: 193109848
Test: atest android.media.tv.tuner.cts
Change-Id: I4e15cc482c4900d12d55a1d8527da0c41a356f88
parent 14fe9345
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -347,7 +347,6 @@ public class Tuner implements AutoCloseable {
            mHandler = createEventHandler();
        }

        mHandler = createEventHandler();
        int[] clientId = new int[1];
        ResourceClientProfile profile = new ResourceClientProfile();
        profile.tvInputSessionId = tvInputSessionId;
@@ -516,6 +515,8 @@ public class Tuner implements AutoCloseable {
            mDemuxHandle = null;
        }

        mTunerResourceManager.unregisterClientProfile(mClientId);

    }

    /**