Skip to content

Instantly share code, notes, and snippets.

@fmedlin
Created November 6, 2021 18:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save fmedlin/3386bc10d21dc1f5f9c921c78544a091 to your computer and use it in GitHub Desktop.
Save fmedlin/3386bc10d21dc1f5f9c921c78544a091 to your computer and use it in GitHub Desktop.
private void handleViewClicks(View view) {
ClickHandler.handleClick(view.findViewById(R.id.about_blog), v ->
browseOrToastOnError(view.getContext(), SIMPLENOTE_BLOG_URL));
ClickHandler.handleClick(view.findViewById(R.id.about_help), v ->
browseOrToastOnError(view.getContext(), SIMPLENOTE_HELP_URL));
ClickHandler.handleClick(view.findViewById(R.id.about_contribute), v ->
browseOrToastOnError(view.getContext(), URL_CONTRIBUTE));
ClickHandler.handleClick(view.findViewById(R.id.about_careers), v ->
browseOrToastOnError(view.getContext(), SIMPLENOTE_HIRING_HANDLE));
ClickHandler.handleClick(view.findViewById(R.id.about_twitter), v ->
browseOrBrowseOnException(
TWITTER_APP_URI + SIMPLENOTE_TWITTER_HANDLE,
TWITTER_PROFILE_URL + SIMPLENOTE_TWITTER_HANDLE
));
handleAboutStoreClick(view);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment