修改分享框布局,替换相关图片资源
This commit is contained in:
@@ -4,6 +4,7 @@ import android.content.BroadcastReceiver
|
||||
import android.content.Context
|
||||
import android.content.Intent
|
||||
import com.mogo.module.share.constant.ShareConstants
|
||||
import com.mogo.utils.logger.Logger
|
||||
|
||||
/**
|
||||
* 用于接收唤醒词指令,现在只接收 com.zhidao.speech.awake.notify 这一条广播
|
||||
@@ -12,6 +13,7 @@ class ShareVoiceCmdReceiver : BroadcastReceiver() {
|
||||
override fun onReceive(context: Context, intent: Intent) {
|
||||
// todo 接收唤醒词指令
|
||||
val command = intent.getStringExtra("command")
|
||||
Logger.d("ShareCmdReceiver", "收到唤醒词指令: $command")
|
||||
if (command == "zhunbeishangbao") {
|
||||
//todo 开启服务,准备上报求助
|
||||
val seekHelp = Intent(context, VoiceCmdService::class.java)
|
||||
|
||||
Reference in New Issue
Block a user