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

Commit ba5ab5cf authored by android-build-team Robot's avatar android-build-team Robot
Browse files

Snap for 6091872 from af229217 to qt-qpr2-release

Change-Id: I87f7181bd2315bc3b01e73298f10edc3cbc7396b
parents cadbdfbe af229217
Loading
Loading
Loading
Loading
+9 −3
Original line number Diff line number Diff line
@@ -233,18 +233,24 @@ class RadioModule {
    }

    private void fanoutAidlCallbackLocked(AidlCallbackRunnable runnable) {
        List<TunerSession> deadSessions = null;
        for (TunerSession tunerSession : mAidlTunerSessions) {
            try {
                runnable.run(tunerSession.mCallback);
            } catch (DeadObjectException ex) {
                // The other side died without calling close(), so just purge it from our
                // records.
                // The other side died without calling close(), so just purge it from our records.
                Slog.e(TAG, "Removing dead TunerSession");
                mAidlTunerSessions.remove(tunerSession);
                if (deadSessions == null) {
                    deadSessions = new ArrayList<>();
                }
                deadSessions.add(tunerSession);
            } catch (RemoteException ex) {
                Slog.e(TAG, "Failed to invoke ITunerCallback: ", ex);
            }
        }
        if (deadSessions != null) {
            mAidlTunerSessions.removeAll(deadSessions);
        }
    }

    public android.hardware.radio.ICloseHandle addAnnouncementListener(@NonNull int[] enabledTypes,