mirror of
https://github.com/gkd-kit/gkd.git
synced 2024-11-16 03:32:38 +08:00
This commit is contained in:
parent
3fda835ade
commit
ed6e66159b
|
@ -249,7 +249,6 @@ fun safeTap(x: Float, y: Float): Boolean? {
|
||||||
private fun IUserService.execCommandForResult(command: String): Boolean? {
|
private fun IUserService.execCommandForResult(command: String): Boolean? {
|
||||||
return try {
|
return try {
|
||||||
val result = execCommand(command)
|
val result = execCommand(command)
|
||||||
LogUtils.d("safeTap", result)
|
|
||||||
if (result != null) {
|
if (result != null) {
|
||||||
json.decodeFromString<CommandResult>(result).code == 0
|
json.decodeFromString<CommandResult>(result).code == 0
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user