diff --git a/examples/android/CHIPTool/app/src/main/java/com/google/chip/chiptool/clusterclient/AddressUpdateFragment.kt b/examples/android/CHIPTool/app/src/main/java/com/google/chip/chiptool/clusterclient/AddressUpdateFragment.kt index 6f7cbbeb4d6e89..6ff5107b48130d 100644 --- a/examples/android/CHIPTool/app/src/main/java/com/google/chip/chiptool/clusterclient/AddressUpdateFragment.kt +++ b/examples/android/CHIPTool/app/src/main/java/com/google/chip/chiptool/clusterclient/AddressUpdateFragment.kt @@ -2,6 +2,7 @@ package com.google.chip.chiptool.clusterclient import android.content.Context import android.os.Bundle +import android.util.Log import android.view.LayoutInflater import android.view.View import android.view.ViewGroup @@ -61,7 +62,9 @@ class AddressUpdateFragment : Fragment() { binding.deviceIdEd.setText(deviceIdList[position].toULong(16).toString()) } - override fun onNothingSelected(parent: AdapterView<*>?) {} + override fun onNothingSelected(parent: AdapterView<*>?) { + Log.d(TAG, "onNothingSelected") + } } } @@ -81,6 +84,7 @@ class AddressUpdateFragment : Fragment() { } companion object { + private const val TAG = "AddressUpdateFragment" // Refer from NodeId.h (src/lib/core/NodeId.h) private const val MIN_GROUP_NODE_ID = 0xFFFF_FFFF_FFFF_0000UL private const val MASK_GROUP_ID = 0x0000_0000_0000_FFFFUL diff --git a/examples/android/CHIPTool/app/src/main/java/com/google/chip/chiptool/clusterclient/GroupSettingFragment.kt b/examples/android/CHIPTool/app/src/main/java/com/google/chip/chiptool/clusterclient/GroupSettingFragment.kt index 94ba73b52a5e46..179a08e3c9883c 100644 --- a/examples/android/CHIPTool/app/src/main/java/com/google/chip/chiptool/clusterclient/GroupSettingFragment.kt +++ b/examples/android/CHIPTool/app/src/main/java/com/google/chip/chiptool/clusterclient/GroupSettingFragment.kt @@ -18,6 +18,7 @@ import chip.devicecontroller.InvokeCallback import chip.devicecontroller.ReportCallback import chip.devicecontroller.WriteAttributesCallback import chip.devicecontroller.cluster.structs.AccessControlClusterAccessControlEntryStruct +import chip.devicecontroller.cluster.structs.GroupKeyManagementClusterGroupKeySetStruct import chip.devicecontroller.model.AttributeWriteRequest import chip.devicecontroller.model.ChipAttributePath import chip.devicecontroller.model.ChipEventPath @@ -258,20 +259,22 @@ class GroupSettingFragment : Fragment() { val dialog = AlertDialog.Builder(requireContext()).apply { setView(dialogView) }.create() dialogView.findViewById