mirror of
https://codeberg.org/tom79/Fedilab.git
synced 2024-12-22 16:50:04 +02:00
Some fixes
This commit is contained in:
parent
b7265d6de3
commit
1a37063295
1 changed files with 12 additions and 5 deletions
|
@ -168,7 +168,6 @@ public class ComposeActivity extends BaseActivity implements ComposeAdapter.Mana
|
||||||
accountMention = (app.fedilab.android.client.entities.api.Account) b.getSerializable(Helper.ARG_ACCOUNT_MENTION);
|
accountMention = (app.fedilab.android.client.entities.api.Account) b.getSerializable(Helper.ARG_ACCOUNT_MENTION);
|
||||||
}
|
}
|
||||||
binding.toolbar.setPopupTheme(Helper.popupStyle());
|
binding.toolbar.setPopupTheme(Helper.popupStyle());
|
||||||
|
|
||||||
//Edit a scheduled status from server
|
//Edit a scheduled status from server
|
||||||
if (scheduledStatus != null) {
|
if (scheduledStatus != null) {
|
||||||
statusDraft = new StatusDraft();
|
statusDraft = new StatusDraft();
|
||||||
|
@ -629,10 +628,18 @@ public class ComposeActivity extends BaseActivity implements ComposeAdapter.Mana
|
||||||
WorkManager.getInstance(ComposeActivity.this).cancelWorkById(statusDraft.workerUuid);
|
WorkManager.getInstance(ComposeActivity.this).cancelWorkById(statusDraft.workerUuid);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
statusDraft.statusReplyList = statusReplies;
|
if (statusReplies.size() > 0) {
|
||||||
statusDraft.statusDraftList = statusDrafts;
|
statusDraft.statusReplyList = statusReplies;
|
||||||
statusDraft.instance = account.instance;
|
}
|
||||||
statusDraft.user_id = account.user_id;
|
if (statusDrafts.size() > 0) {
|
||||||
|
statusDraft.statusDraftList = statusDrafts;
|
||||||
|
}
|
||||||
|
if (statusDraft.instance == null) {
|
||||||
|
statusDraft.instance = account.instance;
|
||||||
|
}
|
||||||
|
if (statusDraft.user_id == null) {
|
||||||
|
statusDraft.user_id = account.user_id;
|
||||||
|
}
|
||||||
|
|
||||||
if (!canBeSent(statusDraft)) {
|
if (!canBeSent(statusDraft)) {
|
||||||
return;
|
return;
|
||||||
|
|
Loading…
Reference in a new issue