public void displaySnackBar(@NonNull final Context context, @NonNull final CoordinatorLayout container, @NonNull final String message, final int duration) {
        Snackbar.make(container, message, duration)
                .setActionTextColor(context.getResources().getColor(R.color.colorSecondary))
                .show();
    }
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