Enable button when an error occurs to upload new media

This commit is contained in:
tom79 2017-09-24 11:59:54 +02:00
parent 07e7f76a09
commit dea2993005
1 changed files with 1 additions and 0 deletions

View File

@ -916,6 +916,7 @@ public class TootActivity extends AppCompatActivity implements OnRetrieveSearcAc
Toast.makeText(getApplicationContext(), error.getError(),Toast.LENGTH_LONG).show();
if( attachments.size() == 0 )
toot_picture_container.setVisibility(View.GONE);
toot_picture.setEnabled(true);
return;
}
toot_picture_container.setVisibility(View.VISIBLE);