Skip to content

Commit 8a4894e

Browse files
committed
Update DiagnosticLog UX (Download complete / failed)
1 parent d82e05e commit 8a4894e

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

examples/android/CHIPTool/app/src/main/java/com/google/chip/chiptool/clusterclient/DiagnosticLogFragment.kt

+2
Original file line numberDiff line numberDiff line change
@@ -79,12 +79,14 @@ class DiagnosticLogFragment : Fragment() {
7979
inner class ChipDownloadLogCallback : DownloadLogCallback {
8080
override fun onError(fabricIndex: Int, nodeId: Long, errorCode: Long) {
8181
Log.d(TAG, "onError: $fabricIndex, ${nodeId.toULong()}, $errorCode")
82+
showMessage("Downloading Failed")
8283
mDownloadFileOutputStream?.flush() ?: return
8384
}
8485

8586
override fun onSuccess(fabricIndex: Int, nodeId: Long) {
8687
Log.d(TAG, "onSuccess: $fabricIndex, ${nodeId.toULong()}")
8788
mDownloadFileOutputStream?.flush() ?: return
89+
showMessage("Downloading Completed")
8890
mDownloadFile?.let { showNotification(it) } ?: return
8991
}
9092

0 commit comments

Comments
 (0)