Fix compose
This commit is contained in:
parent
927433a7bf
commit
4d4d27e512
|
@ -109,7 +109,6 @@ public class ComposeActivity extends BaseActivity implements ComposeAdapter.Mana
|
|||
private Status statusReply, statusMention;
|
||||
private StatusDraft statusDraft;
|
||||
private ComposeAdapter composeAdapter;
|
||||
private static int composeID;
|
||||
|
||||
private final BroadcastReceiver imageReceiver = new BroadcastReceiver() {
|
||||
@Override
|
||||
|
@ -473,8 +472,6 @@ public class ComposeActivity extends BaseActivity implements ComposeAdapter.Mana
|
|||
setContentView(binding.getRoot());
|
||||
setSupportActionBar(binding.toolbar);
|
||||
ActionBar actionBar = getSupportActionBar();
|
||||
//Fake id given to drafts
|
||||
composeID = 1;
|
||||
//Remove title
|
||||
if (actionBar != null) {
|
||||
actionBar.setDisplayShowTitleEnabled(false);
|
||||
|
@ -721,10 +718,8 @@ public class ComposeActivity extends BaseActivity implements ComposeAdapter.Mana
|
|||
@Override
|
||||
public void onItemDraftAdded(int position) {
|
||||
Status status = new Status();
|
||||
composeID++;
|
||||
status.id = String.valueOf(composeID);
|
||||
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.sensitive = statusList.get(position).sensitive;
|
||||
statusList.add(status);
|
||||
|
|
Loading…
Reference in New Issue