カーソル位置によってはハッシュタグの自動補完が効かないバグを修正
This commit is contained in:
parent
969654341f
commit
4538f6def3
@ -9,8 +9,8 @@ android {
|
|||||||
applicationId "jp.juggler.subwaytooter"
|
applicationId "jp.juggler.subwaytooter"
|
||||||
minSdkVersion 21
|
minSdkVersion 21
|
||||||
targetSdkVersion 25
|
targetSdkVersion 25
|
||||||
versionCode 73
|
versionCode 74
|
||||||
versionName "0.7.3"
|
versionName "0.7.4"
|
||||||
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
|
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -697,7 +697,7 @@ public class ActPost extends AppCompatActivity implements View.OnClickListener,
|
|||||||
int end = etContent.getSelectionEnd();
|
int end = etContent.getSelectionEnd();
|
||||||
|
|
||||||
String src = etContent.getText().toString();
|
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 ){
|
if( last_sharp == - 1 || end - last_sharp < 3 ){
|
||||||
closeAcctPopup();
|
closeAcctPopup();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user