mirror of
https://github.com/tateisu/SubwayTooter
synced 2025-02-05 21:23:26 +01:00
カーソル位置によってはハッシュタグの自動補完が効かないバグを修正
This commit is contained in:
parent
969654341f
commit
4538f6def3
@ -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"
|
||||
}
|
||||
|
||||
|
@ -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();
|
||||
|
Loading…
x
Reference in New Issue
Block a user