Back to project page MYKey_SoftKeyboard.
The source code is released under:
Apache License
If you think the Android project MYKey_SoftKeyboard listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package korean_automata; //www.ja v a2 s . co m import java.util.ArrayList; import key_process.*; import com.android.mykey.*; public class VerifyComb extends CombinationState { public VerifyComb(){ repeat = true; } @Override public int[] combine(ArrayList<Integer> phoArr, KoreanAutomata ka) { int firstFinal = phoArr.get(2); int secondFinal = phoArr.get(3); int result; if(secondFinal / 100 == 40){ result = FinalCombinationInfo.ERROR; } else{ result = FinalCombinationInfo.checkFinalComb(firstFinal,secondFinal); } if (result == FinalCombinationInfo.ERROR) ka.setKoreanAutomataState(KoreanAutomata.ST_SINGLE_FINAL_AND_FIRST, ka.getPreviousState()); else ka.setKoreanAutomataState(KoreanAutomata.ST_MULTI_FINAL, ka.getPreviousState()); ka.setEnter(false); return null; } }