sample/src/main/java/com/gordonwong/materialsheetfab/sample/MainActivity.java
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;
		}
	}
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;
		}
	}
Updates the snackbar based on the selected page

@param selectedPage selected page