Crap way to get the first sentence of a toot capitalised if its a reply to someone and therefore has mentions at beginning.
This commit is contained in:
parent
dd9bcee721
commit
ac30083af7
|
@ -356,9 +356,19 @@ 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);
|
||||
toot.setContent(toot_content.getText().toString().trim());
|
||||
if( tootReply != null)
|
||||
|
||||
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);
|
||||
|
||||
}
|
||||
|
@ -1107,6 +1117,8 @@ public class TootActivity extends AppCompatActivity implements OnRetrieveSearcAc
|
|||
}
|
||||
}
|
||||
}
|
||||
|
||||
toot_content.append("{{ . ");
|
||||
toot_content.setSelection(toot_content.getText().length()); //Put cursor at the end
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue