@Nullable
    public Integer getUpdatedDeviceIndex() {
        final Integer i = mUpdatedDeviceIndex;
        mUpdatedDeviceIndex = null;
        return i;
    }
Returns null if a new device was added, or an index of the updated device.
app/src/main/java/no/nordicsemi/android/nrfmesh/viewmodels/ScannerLiveData.java