mirror of
https://github.com/mastodon/mastodon-android.git
synced 2025-02-02 03:36:44 +01:00
Crash fix
This commit is contained in:
parent
5fff86a0c2
commit
f267f68245
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user