public void displayDisconnectedSnackBar(@NonNull final Activity context, @NonNull final CoordinatorLayout container) {
        Snackbar.make(container, context.getString(R.string.disconnected_network_rationale), Snackbar.LENGTH_LONG)
                .setActionTextColor(context.getResources().getColor(R.color.colorSecondary))
                .setAction(context.getString(R.string.action_connect), v ->
                        navigateToScannerActivity(context, false))
                .show();
    }
Display disconnected snack bar

@param context   Activity context
@param container container
app/src/main/java/no/nordicsemi/android/nrfmesh/viewmodels/BaseViewModel.java