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

Commit f60ac630 authored by John Huang's avatar John Huang Committed by Android (Google) Code Review
Browse files

Merge "Notify overall state instead of current changed state"

parents 7b0e5af5 e6fa1202
Loading
Loading
Loading
Loading
+4 −2
Original line number Diff line number Diff line
@@ -421,11 +421,13 @@ class TelephonyRegistry extends ITelephonyRegistry.Stub {
                modified = true;
            }
            if (modified) {
                Slog.d(TAG, "onDataConnectionStateChanged(" + state + ", " + networkType + ")");
                Slog.d(TAG, "onDataConnectionStateChanged(" + mDataConnectionState
                        + ", " + mDataConnectionNetworkType + ")");
                for (Record r : mRecords) {
                    if ((r.events & PhoneStateListener.LISTEN_DATA_CONNECTION_STATE) != 0) {
                        try {
                            r.callback.onDataConnectionStateChanged(state, networkType);
                            r.callback.onDataConnectionStateChanged(mDataConnectionState,
                                    mDataConnectionNetworkType);
                        } catch (RemoteException ex) {
                            mRemoveList.add(r.binder);
                        }