Skip to content

Instantly share code, notes, and snippets.

@lawloretienne
Last active October 6, 2016 17:22
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 lawloretienne/96b16b6b827e8a435ce240423c00d745 to your computer and use it in GitHub Desktop.
Save lawloretienne/96b16b6b827e8a435ce240423c00d745 to your computer and use it in GitHub Desktop.
@OnClick(R.id.fab)
public void onFiltersButtonClicked(View view) {
Event event = new Event(EventNames.EVENT_FILTERS_FAB_CLICKED, null);
EventLogger.logEvent(event);
if(getActivity().isFinishing())
return;
Intent intent = new Intent(view.getContext(), EventFiltersActivity.class);
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP) {
getActivity().getWindow().setExitTransition(null);
ActivityCompat.startActivity(getActivity(), intent, ActivityOptionsCompat.makeSceneTransitionAnimation(getActivity()).toBundle());
} else {
startActivity(intent);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment