1
0
mirror of https://github.com/tateisu/SubwayTooter synced 2025-02-05 21:23:26 +01:00

カーソル位置によってはハッシュタグの自動補完が効かないバグを修正

This commit is contained in:
tateisu 2017-05-27 07:49:38 +09:00
parent 969654341f
commit 4538f6def3
2 changed files with 3 additions and 3 deletions

View File

@ -9,8 +9,8 @@ android {
applicationId "jp.juggler.subwaytooter"
minSdkVersion 21
targetSdkVersion 25
versionCode 73
versionName "0.7.3"
versionCode 74
versionName "0.7.4"
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
}

View File

@ -697,7 +697,7 @@ public class ActPost extends AppCompatActivity implements View.OnClickListener,
int end = etContent.getSelectionEnd();
String src = etContent.getText().toString();
int last_sharp = src.lastIndexOf( '#' );
int last_sharp = src.lastIndexOf( '#',end-1 );
if( last_sharp == - 1 || end - last_sharp < 3 ){
closeAcctPopup();