Crash fix
This commit is contained in:
parent
be7469bd54
commit
2d5089c047
|
@ -547,7 +547,7 @@ public class ComposeFragment extends MastodonToolbarFragment implements OnBackPr
|
||||||
@Override
|
@Override
|
||||||
public boolean onOptionsItemSelected(MenuItem item){
|
public boolean onOptionsItemSelected(MenuItem item){
|
||||||
if(item.getItemId()==R.id.publish){
|
if(item.getItemId()==R.id.publish){
|
||||||
if(GlobalUserPreferences.altTextReminders)
|
if(GlobalUserPreferences.altTextReminders && editingStatus==null)
|
||||||
checkAltTextsAndPublish();
|
checkAltTextsAndPublish();
|
||||||
else
|
else
|
||||||
publish();
|
publish();
|
||||||
|
|
|
@ -560,7 +560,7 @@ public class ComposeMediaViewController{
|
||||||
|
|
||||||
public boolean areAllAttachmentsImages(){
|
public boolean areAllAttachmentsImages(){
|
||||||
for(DraftMediaAttachment att:attachments){
|
for(DraftMediaAttachment att:attachments){
|
||||||
if(!att.mimeType.startsWith("image/"))
|
if((att.mimeType==null && att.serverAttachment.type==Attachment.Type.IMAGE) || !att.mimeType.startsWith("image/"))
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
return true;
|
return true;
|
||||||
|
|
Loading…
Reference in New Issue