@Override
        public void onReceive(final Context context, final Intent intent) {
            final boolean enabled = Utils.isLocationEnabled(context);
            mScannerStateLiveData.setLocationEnabled(enabled);
        }
Broadcast receiver to monitor the changes in the location provider
app/src/main/java/no/nordicsemi/android/nrfmesh/viewmodels/ScannerRepository.java