Fix issue #272
This commit is contained in:
parent
f653c8ab84
commit
fcf1b2b960
|
@ -2899,7 +2899,7 @@ public class TootActivity extends BaseActivity implements UploadStatusDelegate,
|
|||
newContent += ":" + shortcode + ": ";
|
||||
int newPosition = newContent.length();
|
||||
if (currentCursorPosition < oldContent.length())
|
||||
newContent += oldContent.substring(currentCursorPosition, oldContent.length() - 1);
|
||||
newContent += oldContent.substring(currentCursorPosition, oldContent.length());
|
||||
toot_content.setText(newContent);
|
||||
toot_space_left.setText(String.valueOf(countLength(social, toot_content, toot_cw_content)));
|
||||
toot_content.setSelection(newPosition);
|
||||
|
@ -3046,7 +3046,7 @@ public class TootActivity extends BaseActivity implements UploadStatusDelegate,
|
|||
newContent += "#" + tag + " ";
|
||||
int newPosition = newContent.length();
|
||||
if (currentCursorPosition < oldContent.length())
|
||||
newContent += oldContent.substring(currentCursorPosition, oldContent.length() - 1);
|
||||
newContent += oldContent.substring(currentCursorPosition, oldContent.length());
|
||||
toot_content.setText(newContent);
|
||||
toot_space_left.setText(String.valueOf(countLength(social, toot_content, toot_cw_content)));
|
||||
toot_content.setSelection(newPosition);
|
||||
|
|
|
@ -433,7 +433,7 @@ public class StatusListAdapter extends RecyclerView.Adapter implements OnPostAct
|
|||
newContent += ":" + shortcode + ": ";
|
||||
int newPosition = newContent.length();
|
||||
if( currentCursorPosition < oldContent.length() )
|
||||
newContent += oldContent.substring(currentCursorPosition, oldContent.length()-1);
|
||||
newContent += oldContent.substring(currentCursorPosition, oldContent.length());
|
||||
toot_content.setText(newContent);
|
||||
toot_space_left.setText(String.valueOf(TootActivity.countLength(social, toot_content, toot_cw_content)));
|
||||
toot_content.setSelection(newPosition);
|
||||
|
@ -490,7 +490,7 @@ public class StatusListAdapter extends RecyclerView.Adapter implements OnPostAct
|
|||
newContent += "#" + tag + " ";
|
||||
int newPosition = newContent.length();
|
||||
if( currentCursorPosition < oldContent.length() )
|
||||
newContent += oldContent.substring(currentCursorPosition, oldContent.length()-1);
|
||||
newContent += oldContent.substring(currentCursorPosition, oldContent.length());
|
||||
toot_content.setText(newContent);
|
||||
toot_space_left.setText(String.valueOf(TootActivity.countLength(social,toot_content, toot_cw_content)));
|
||||
toot_content.setSelection(newPosition);
|
||||
|
|
Loading…
Reference in New Issue