Skip to content

Instantly share code, notes, and snippets.

@fmedlin
Created November 6, 2021 12:33
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/f811fe0217309edcd045b4da6f694306 to your computer and use it in GitHub Desktop.
Save fmedlin/f811fe0217309edcd045b4da6f694306 to your computer and use it in GitHub Desktop.
ClickHandler.handleClick(view.findViewById(R.id.about_blog), v -> {
try {
BrowserUtils.launchBrowserOrShowError(requireContext(), SIMPLENOTE_BLOG_URL);
} catch (Exception e) {
Toast.makeText(getActivity(), R.string.no_browser_available, Toast.LENGTH_LONG).show();
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment