Prepare modal

This commit is contained in:
tom79 2019-10-06 12:27:50 +02:00
parent bd7eaa864a
commit a59298fb33
1 changed files with 6 additions and 1 deletions

View File

@ -2215,11 +2215,17 @@ public class TootActivity extends BaseActivity implements UploadStatusDelegate,
} else { } else {
tootContent = wysiwyg.getContentAsHTML(); tootContent = wysiwyg.getContentAsHTML();
} }
createAndSendToot(tootContent, content_type, timestamp);
} else { } else {
splitToot = Helper.splitToots(toot_content.getText().toString().trim(), split_toot_size); splitToot = Helper.splitToots(toot_content.getText().toString().trim(), split_toot_size);
tootContent = splitToot.get(0); tootContent = splitToot.get(0);
stepSpliToot = 1; stepSpliToot = 1;
} }
}
private void createAndSendToot(String tootContent, String content_type, String timestamp){
Status toot = new Status(); Status toot = new Status();
if (content_type != null) if (content_type != null)
toot.setContentType(content_type); toot.setContentType(content_type);
@ -2257,7 +2263,6 @@ public class TootActivity extends BaseActivity implements UploadStatusDelegate,
toot.setScheduled_at(timestamp); toot.setScheduled_at(timestamp);
new PostStatusAsyncTask(getApplicationContext(), social, account, toot, TootActivity.this).executeOnExecutor(AsyncTask.THREAD_POOL_EXECUTOR); new PostStatusAsyncTask(getApplicationContext(), social, account, toot, TootActivity.this).executeOnExecutor(AsyncTask.THREAD_POOL_EXECUTOR);
} }
} }