diff --git a/examples/android/CHIPTool/app/src/main/java/com/google/chip/chiptool/clusterclient/WildcardFragment.kt b/examples/android/CHIPTool/app/src/main/java/com/google/chip/chiptool/clusterclient/WildcardFragment.kt index 83a3ba0eae7cbc..c665adaeb97b47 100644 --- a/examples/android/CHIPTool/app/src/main/java/com/google/chip/chiptool/clusterclient/WildcardFragment.kt +++ b/examples/android/CHIPTool/app/src/main/java/com/google/chip/chiptool/clusterclient/WildcardFragment.kt @@ -229,7 +229,7 @@ class WildcardFragment : Fragment() { return stringBuilder.toString() } - private suspend fun subscribe(minInterval: Int, maxInterval: Int, keepSubscriptions: Boolean, isFabricFiltered: Boolean) { + private suspend fun subscribe(minInterval: Int, maxInterval: Int, keepSubscriptions: Boolean, isFabricFiltered: Boolean, eventMin: Long?) { val subscriptionEstablishedCallback = SubscriptionEstablishedCallback { subscriptionId -> @@ -255,17 +255,19 @@ class WildcardFragment : Fragment() { maxInterval, keepSubscriptions, isFabricFiltered, - /* imTimeoutMs= */ 0) + /* imTimeoutMs= */ 0, + eventMin) } - private suspend fun read(isFabricFiltered: Boolean) { + private suspend fun read(isFabricFiltered: Boolean, eventMin: Long?) { deviceController.readPath(reportCallback, ChipClient.getConnectedDevicePointer(requireContext(), addressUpdateFragment.deviceId), attributePath.ifEmpty { null }, eventPath.ifEmpty { null }, isFabricFiltered, - /* imTimeoutMs= */ 0) + /* imTimeoutMs= */ 0, + eventMin) } private suspend fun write(writeValueType: String, writeValue: String, dataVersion: Int?, timedRequestTimeoutMs: Int, imTimeoutMs: Int) { @@ -336,14 +338,20 @@ class WildcardFragment : Fragment() { return } val dialogView = requireActivity().layoutInflater.inflate(R.layout.read_dialog, null) + val eventMinEd = dialogView.findViewById(R.id.eventMinEd) + eventMinEd.visibility = if (eventPath.isNotEmpty()) { View.VISIBLE } else { View.GONE } val dialog = AlertDialog.Builder(requireContext()).apply { setView(dialogView) }.create() - val isFabricFilteredEd = dialogView.findViewById(R.id.isFabricFilteredSp) + val isFabricFilteredEd = dialogView.findViewById(R.id.isFabricFilteredSp) dialogView.findViewById