fix bug
This commit is contained in:
@@ -57,7 +57,7 @@ class AuthorizeFragment : MvpFragment<AuthorizeContract.View, AuthorizePresenter
|
||||
}
|
||||
|
||||
override fun initViews() {
|
||||
Logger.d(TAG, "initView : ${this.javaClass.hashCode()}")
|
||||
Logger.d(TAG, "initView ")
|
||||
AnalyticsUtil.track(INVOKE_TRACK_AUTHORIZE_SHOW)
|
||||
init()
|
||||
Logger.d(TAG, "invokeTag :$invokeTag")
|
||||
|
||||
@@ -1,6 +1,8 @@
|
||||
package com.mogo.module.authorize.voice
|
||||
|
||||
import android.content.Intent
|
||||
import com.mogo.module.authorize.voice.VoiceUtil.VOICE_INTENT_AGREE
|
||||
import com.mogo.module.authorize.voice.VoiceUtil.VOICE_INTENT_DISAGREE
|
||||
import com.mogo.module.authorize.voice.VoiceUtil.VOICE_REGISTER_AUTHORIZE_AGREE
|
||||
import com.mogo.module.authorize.voice.VoiceUtil.VOICE_REGISTER_AUTHORIZE_DISAGREE
|
||||
import com.mogo.utils.logger.Logger
|
||||
@@ -26,12 +28,12 @@ object VoiceManager {
|
||||
fun handleOnIntentCmd(cmd: String, intent: Intent, listener: IVoiceIntentListener) {
|
||||
Logger.i(TAG, "handleOnIntentCmd: cmd -> $cmd")
|
||||
when (cmd) {
|
||||
VOICE_REGISTER_AUTHORIZE_AGREE -> {
|
||||
VOICE_INTENT_AGREE -> {
|
||||
Logger.i(TAG, "语音唤醒 同意")
|
||||
listener.onVoiceCmdAgree()
|
||||
}
|
||||
VOICE_REGISTER_AUTHORIZE_DISAGREE -> {
|
||||
Logger.i(TAG, "语音免唤醒 不同意")
|
||||
VOICE_INTENT_DISAGREE -> {
|
||||
Logger.i(TAG, "语音唤醒 不同意")
|
||||
listener.onVoiceCmdDisAgree()
|
||||
}
|
||||
}
|
||||
|
||||
@@ -61,7 +61,7 @@ object VoiceUtil {
|
||||
VOICE_REGISTER_AUTHORIZE_AGREE,
|
||||
agreeArray, voiceCommand
|
||||
)
|
||||
// intentRegister?.registerIntentListener(VOICE_INTENT_AGREE, intentCommand)
|
||||
intentRegister?.registerIntentListener(VOICE_INTENT_AGREE, intentCommand)
|
||||
}
|
||||
|
||||
private fun registerDisAgree(
|
||||
@@ -75,7 +75,7 @@ object VoiceUtil {
|
||||
VOICE_REGISTER_AUTHORIZE_DISAGREE,
|
||||
disAgreeArray, voiceCommand
|
||||
)
|
||||
// intentRegister?.registerIntentListener(VOICE_INTENT_DISAGREE, intentCommand)
|
||||
intentRegister?.registerIntentListener(VOICE_INTENT_DISAGREE, intentCommand)
|
||||
}
|
||||
|
||||
fun unregisterAll(context: Context, listener: IVoiceIntentListener) {
|
||||
|
||||
Reference in New Issue
Block a user