code: private void updateSnackbar(int selectedPage) {
  		View snackbar = findViewById(R.id.snackbar);
  		switch (selectedPage) {
  		case MainPagerAdapter.SHARED_POS:
  			snackbar.setVisibility(View.VISIBLE);
  			break;
  		case MainPagerAdapter.ALL_POS:
  		case MainPagerAdapter.FAVORITES_POS:
  		default:
  			snackbar.setVisibility(View.GONE);
  			break;
  		}
  	}
docs: Updates the snackbar based on the selected page
  
  @param selectedPage selected page