Skip to content
This repository has been archived by the owner on Jan 23, 2021. It is now read-only.

Commit

Permalink
Do not transition if passed view is null
Browse files Browse the repository at this point in the history
Change-Id: Iddc0c7707de0a3a61afac7dae256319bcdae8e11
  • Loading branch information
keyboardsurfer committed Jun 21, 2016
1 parent 0ecd2c7 commit 4290635
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -217,6 +217,11 @@ public void onItemClick(AdapterView<?> parent, View view, int position, long id)

private void performSignInWithTransition(View v) {
final Activity activity = getActivity();
if (v == null) {
// Don't run a transition if the passed view is null
CategorySelectionActivity.start(activity, mPlayer);
return;
}

final Pair[] pairs = TransitionHelper.createSafeTransitionParticipants(activity, true,
new Pair<>(v, activity.getString(R.string.transition_avatar)));
Expand Down

0 comments on commit 4290635

Please sign in to comment.