Created
February 25, 2016 05:06
-
-
Save freeonterminate/d54ced3aadf777f675f2 to your computer and use it in GitHub Desktop.
Is ATOK ?
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function IsATOK: Boolean; | |
var | |
Name: JString; | |
begin | |
Result := False; | |
Name := | |
TJSettings_Secure.JavaClass.getString( | |
TAndroidHelper.Context.getContentResolver(), | |
TJSettings_Secure.JavaClass.DEFAULT_INPUT_METHOD); | |
if (Name = nil) then | |
Exit; | |
Result := JStringToString(Name).ToLower.IndexOf('atok') > -1; | |
end; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment