require "import"
import "com.androlua.Ticker"
if ti then
ti.stop()
service.speak("关闭弹出输入法时暂停音量快捷键")
ti=nil
return true
end
ti=Ticker()
ti.Period=1000
ti.onTick=function()
if not service.isTouchMode() and service.isUseHotkey()
service.setUseHotkey(false)
elseif service.isTouchMode() and not service.isUseHotkey()
service.setUseHotkey(true)
end
end
ti.start()
service.speak("开启弹出输入法时暂停音量快捷键")