修改分享框布局,替换相关图片资源

This commit is contained in:
tongchenfei
2020-04-16 11:46:46 +08:00
parent f69290015e
commit 29125adbfd
10 changed files with 8 additions and 3 deletions

View File

@@ -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)