private void initShareViaLinkListener(View shareView){
  mOnShareViaLinkSwitchCheckedChangeListener=new OnShareViaLinkListener();
  SwitchCompat shareViaLinkSwitch=(SwitchCompat)shareView.findViewById(R.id.shareViaLinkSectionSwitch);
  shareViaLinkSwitch.setOnCheckedChangeListener(mOnShareViaLinkSwitchCheckedChangeListener);
}

private void initShareViaLinkListener ( View shareView ) { mOnShareViaLinkSwitchCheckedChangeListener = new OnShareViaLinkListener ( ) ; SwitchCompat shareViaLinkSwitch = ( SwitchCompat ) shareView . findViewById ( R . id . shareViaLinkSectionSwitch ) ; shareViaLinkSwitch . setOnCheckedChangeListener ( mOnShareViaLinkSwitchCheckedChangeListener ) ; }
binds listener for user actions to create or delete a public share to the views receiving the user events .
