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

Commit 00869af8 authored by Terry Heo's avatar Terry Heo Committed by Android Git Automerger
Browse files

am aaf67d95: am e95af4ab: Merge "TIF: Use copied track list for...

am aaf67d95: am e95af4ab: Merge "TIF: Use copied track list for onTracksChanged() callback" into mnc-dev

* commit 'aaf67d95':
  TIF: Use copied track list for onTracksChanged() callback
parents e64dfb47 aaf67d95
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -385,13 +385,14 @@ public abstract class TvInputService extends Service {
            trackIdSet.clear();

            // TODO: Validate the track list.
            final List<TvTrackInfo> tracksCopy = new ArrayList<>(tracks);
            executeOrPostRunnable(new Runnable() {
                @Override
                public void run() {
                    try {
                        if (DEBUG) Log.d(TAG, "notifyTracksChanged");
                        if (mSessionCallback != null) {
                            mSessionCallback.onTracksChanged(tracks);
                            mSessionCallback.onTracksChanged(tracksCopy);
                        }
                    } catch (RemoteException e) {
                        Log.w(TAG, "error in notifyTracksChanged", e);