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

Commit f3506e6c authored by Marco Loaiza's avatar Marco Loaiza Committed by Android (Google) Code Review
Browse files

Merge "Only notify listeners if device Id changed"

parents 9ddd3e43 e45ccc92
Loading
Loading
Loading
Loading
+5 −2
Original line number Diff line number Diff line
@@ -3048,9 +3048,12 @@ class ContextImpl extends Context {
            throw new UnsupportedOperationException(
                    "Cannot update device ID on a Context created with createDeviceContext()");
        }

        if (mDeviceId != updatedDeviceId) {
            mDeviceId = updatedDeviceId;
            notifyOnDeviceChangedListeners(updatedDeviceId);
        }
    }

    @Override
    public int getDeviceId() {