/**
* Main initialization of the input method component. Be sure to call
* to super class.
*/
@Override public void onCreate() {
super.onCreate();
mInputMethodManager = (InputMethodManager)getSystemService(INPUT_METHOD_SERVICE);
mWordSeparators = getResources().getString(R.string.word_separators);
mSuggestions = EMPTY_LIST;
mQuranSuggestions = EMPTY_MLIST;
mSavedPreSpaces = 0;
try {
mQuranSearch = new QuranSearch(this);
} catch (IOException |SecurityException e) {
mQuranSearch = null;
Toast.makeText(this, "Quran Search disabled, File not found!", Toast.LENGTH_LONG).show();
// TODO disable/gray the Moshaf/shift key & disable/grey Prefs
if (DEBUG) e.printStackTrace();
}
if (mQuranSearch != null) {
PreferenceManager.setDefaultValues(this, R.xml.ime_preferences, false);
setUthmaniTypeFace(Typeface.createFromAsset(getAssets(), "UthmanicHafs.otf"));
}
}
QuranKeyboardIME.java 文件源码
java
阅读 39
收藏 0
点赞 0
评论 0
项目:QuranKeyboard
作者:
评论列表
文章目录