Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue with Cursor position after typing in-between existing text and pressing Space Key #13

Open
mazyaf opened this issue Jan 25, 2019 · 2 comments

Comments

@mazyaf
Copy link

mazyaf commented Jan 25, 2019

Issue with Cursor position after typing in-between existing text and pressing Space Key

@waseem95
Copy link

waseem95 commented Feb 8, 2020

hello have you found the solution I also need help in this.. Thanks

@savan15
Copy link

savan15 commented Apr 9, 2021

Hi
everyone i have solved above issue.

SoftKeyboard.java file are there in project edit this file as per i edit and after working perfect

issue is that "db" are not initialize so db object are not getting when you press space key object ( if (mPredictionOn) db = new DatabaseManager(this);) here are this line to initialize "db" object but this condition are never true in application so application are crash when user press space key i have doing solution above condition

if (mCurKeyboard == mPashtoLatinKeyboard || mCurKeyboard == mPashtoLatinShiftedKeyboard)
mPredictionOn = false;

    this condition are there so here you need to write set 'mPredictionOn' boolean variable to true so 'db'  object are initialize 

so above condition are as change as per my logic

if (mCurKeyboard == mPashtoLatinKeyboard || mCurKeyboard == mPashtoLatinShiftedKeyboard) {
mPredictionOn = false;
} else {
mPredictionOn = true;
}

so finaly done with above condition and now you will be able to give space as per you want whenever

and let me know if you are facing any issue after changing this condition
Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants