Do not try to start next activity if we are not attached.

This commit is contained in:
Alex Hart
2021-09-24 09:21:09 -03:00
parent 4cd9ccc0f1
commit 29e697265c

View File

@@ -343,7 +343,9 @@ public class EditProfileFragment extends LoggingFragment {
@Override
public void onAnimationEnd(Animator animation) {
finishButton.setProgress(0);
if (nextIntent != null) startActivity(nextIntent);
if (nextIntent != null && getActivity() != null) {
startActivity(nextIntent);
}
controller.onProfileNameUploadCompleted();
}