Fix compose

This commit is contained in:
Thomas 2022-09-21 16:31:15 +02:00
parent 927433a7bf
commit 4d4d27e512
1 changed files with 1 additions and 6 deletions

View File

@ -109,7 +109,6 @@ public class ComposeActivity extends BaseActivity implements ComposeAdapter.Mana
private Status statusReply, statusMention; private Status statusReply, statusMention;
private StatusDraft statusDraft; private StatusDraft statusDraft;
private ComposeAdapter composeAdapter; private ComposeAdapter composeAdapter;
private static int composeID;
private final BroadcastReceiver imageReceiver = new BroadcastReceiver() { private final BroadcastReceiver imageReceiver = new BroadcastReceiver() {
@Override @Override
@ -473,8 +472,6 @@ public class ComposeActivity extends BaseActivity implements ComposeAdapter.Mana
setContentView(binding.getRoot()); setContentView(binding.getRoot());
setSupportActionBar(binding.toolbar); setSupportActionBar(binding.toolbar);
ActionBar actionBar = getSupportActionBar(); ActionBar actionBar = getSupportActionBar();
//Fake id given to drafts
composeID = 1;
//Remove title //Remove title
if (actionBar != null) { if (actionBar != null) {
actionBar.setDisplayShowTitleEnabled(false); actionBar.setDisplayShowTitleEnabled(false);
@ -721,10 +718,8 @@ public class ComposeActivity extends BaseActivity implements ComposeAdapter.Mana
@Override @Override
public void onItemDraftAdded(int position) { public void onItemDraftAdded(int position) {
Status status = new Status(); Status status = new Status();
composeID++;
status.id = String.valueOf(composeID);
status.mentions = statusList.get(position).mentions; status.mentions = statusList.get(position).mentions;
status.visibility = getVisibility(statusList.get(position).visibility); status.visibility = statusList.get(position).visibility;
status.spoiler_text = statusList.get(position).spoiler_text; status.spoiler_text = statusList.get(position).spoiler_text;
status.sensitive = statusList.get(position).sensitive; status.sensitive = statusList.get(position).sensitive;
statusList.add(status); statusList.add(status);