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

fork-5.53.8
Alex Hart 2021-09-24 09:21:09 -03:00
rodzic 4cd9ccc0f1
commit 29e697265c
1 zmienionych plików z 3 dodań i 1 usunięć

Wyświetl plik

@ -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();
}