Removed the stripping out bit, as it's not quite real-world ready.

This commit is contained in:
PhotonQyv 2017-08-10 19:12:09 +01:00
parent 95f48842a8
commit 0b1fcd16c0
1 changed files with 4 additions and 14 deletions

View File

@ -359,19 +359,9 @@ public class TootActivity extends AppCompatActivity implements OnRetrieveSearcAc
if( toot_cw_content.getText().toString().trim().length() > 0)
toot.setSpoiler_text(toot_cw_content.getText().toString().trim());
toot.setVisibility(visibility);
if( tootReply != null) {
toot.setContent(toot_content.getText().toString().trim());
if( tootReply != null)
toot.setIn_reply_to_id(tootReply.getId());
String preToot = toot_content.getText().toString().trim();
String postToot = preToot.replace("{{ . ", "");
toot.setContent(postToot.trim());
}
else
{
toot.setContent(toot_content.getText().toString().trim());
}
new PostStatusAsyncTask(getApplicationContext(), toot, TootActivity.this).executeOnExecutor(AsyncTask.THREAD_POOL_EXECUTOR);
}
@ -1164,8 +1154,8 @@ public class TootActivity extends AppCompatActivity implements OnRetrieveSearcAc
}
}
}
toot_content.append("{{ . ");
//Put a "<space>dot<space>" at the end of all mentioned account to force capitalization
toot_content.append(" . ");
toot_content.setSelection(toot_content.getText().length()); //Put cursor at the end
}
}