public void setActivityVisible(final boolean visible) {
        isActivityVisible = visible;
    }
Display snack bar

@param context   Activity context
@param container Coordinator layout
@param message   Message
@param duration  Snack bar duration
app/src/main/java/no/nordicsemi/android/nrfmesh/viewmodels/BaseViewModel.java