Crash fix

This commit is contained in:
Grishka 2022-04-19 07:03:35 +03:00
parent 5fff86a0c2
commit f267f68245
1 changed files with 7 additions and 0 deletions

View File

@ -211,6 +211,13 @@ public class ComposeFragment extends ToolbarFragment implements OnBackPressedLis
}
}
@Override
public void onDestroy(){
super.onDestroy();
if(uploadingAttachment!=null && uploadingAttachment.uploadRequest!=null)
uploadingAttachment.uploadRequest.cancel();
}
@Override
public void onAttach(Activity activity){
super.onAttach(activity);