Skip to content

Commit 8331160

Browse files
committed
升级 sdk
1 parent 08add3a commit 8331160

File tree

3 files changed

+10
-3
lines changed

3 files changed

+10
-3
lines changed

app/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,5 +79,5 @@ dependencies {
7979
implementation libs.androidx.core.ktx
8080
implementation libs.kotlinx.coroutines.android
8181
implementation libs.gson
82-
implementation 'com.tencent.iot.video:video-device-android:1.0.8.02-wakeup-SNAPSHOT'
82+
implementation 'com.tencent.iot.video:video-device-android:1.0.8.06-wakeup-SNAPSHOT'
8383
}

app/src/main/java/com/example/ivdemo/WakeupActivity.kt

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@ class WakeupActivity : AppCompatActivity(), OnnxKwsBridge.OnWakeupListener {
5656

5757
private val onnxKwsBridge by lazy { OnnxKwsBridge.getInstance() }
5858

59+
private var isStarting = false
5960
override fun onRequestPermissionsResult(
6061
requestCode: Int,
6162
permissions: Array<String>,
@@ -306,6 +307,12 @@ class WakeupActivity : AppCompatActivity(), OnnxKwsBridge.OnWakeupListener {
306307
return bArray
307308
}
308309

310+
override fun onMessage(code: Int, Msg: String?) {
311+
lifecycleScope.launch {
312+
Toast.makeText(this@WakeupActivity, "code:$code Msg:$Msg", Toast.LENGTH_SHORT).show()
313+
}
314+
}
315+
309316
override fun onStartSuccess(msg: String?) {
310317
lifecycleScope.launch {
311318
Toast.makeText(this@WakeupActivity, msg, Toast.LENGTH_SHORT).show()

app/src/main/res/layout/activity_wakeup.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -214,9 +214,9 @@
214214
android:layout_width="wrap_content"
215215
android:layout_height="36dp"
216216
android:layout_marginBottom="16dp"
217-
android:background="@drawable/background_grey_cell_btn"
217+
android:background="@drawable/background_blue_cell_btn"
218218
android:text="@string/start"
219-
android:textColor="@color/white_0052D9"
219+
android:textColor="@color/blue_0052D9"
220220
app:layout_constraintBottom_toBottomOf="parent"
221221
app:layout_constraintEnd_toEndOf="parent"
222222
app:layout_constraintStart_toStartOf="parent" />

0 commit comments

Comments
 (0)