class SecuredActivity extends MultiLanguageActivity implements P2pProcessingStatusBroadcastReceiver.StatusUpdate {

    public void showProcessingInProgressSnackbar(@NonNull AppCompatActivity appCompatActivity, int margin) {
        if (processingInProgressSnackbar == null) {
            // Create the snackbar
            View parentView = ((ViewGroup) appCompatActivity.findViewById(android.R.id.content))
                    .getChildAt(0);

            processingInProgressSnackbar = ProcessingInProgressSnackbar.make(parentView);

            if (margin != 0) {
                processingInProgressSnackbar.addBottomBarMargin(margin);
            }
            processingInProgressSnackbar.setDuration(BaseTransientBottomBar.LENGTH_INDEFINITE);
            processingInProgressSnackbar.show();
        } else if (!processingInProgressSnackbar.isShown()) {
            processingInProgressSnackbar.show();
        }
    }

}