Skip to content

Commit

Permalink
resolve comments
Browse files Browse the repository at this point in the history
  • Loading branch information
JasonLiuZhuoCheng committed Nov 5, 2021
1 parent 71f96e9 commit 1cd1001
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 19 deletions.
17 changes: 0 additions & 17 deletions src/android/CHIPTool/.idea/deploymentTargetDropDown.xml

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -84,8 +84,8 @@ class ClusterDetailFragment : Fragment() {
>>>>>>> d3d83a0bc (select different cluster, command will remove previous displayed parameter)
=======
clusterMap = ClusterInfoMapping().clusterMap
devicePtr = checkNotNull(requireArguments().getLong(DEVICE_PTR))
endpointId = checkNotNull(requireArguments().getInt(ENDPOINT_ID))
devicePtr = checkNotNull(requireArguments().getLong(DEVICE_PTR_KEY))
endpointId = checkNotNull(requireArguments().getInt(ENDPOINT_ID_KEY))
return inflater.inflate(R.layout.cluster_detail_fragment, container, false).apply {
deviceController.setCompletionListener(GenericChipDeviceListener())
commandAutoCompleteTv.visibility = View.GONE
Expand Down Expand Up @@ -305,6 +305,7 @@ class ClusterDetailFragment : Fragment() {
<<<<<<< HEAD
private fun constructHint(clusterMap: Map<String, *>): Array<String> {
return clusterMap.keys.toTypedArray()
<<<<<<< HEAD
=======
private fun constructHint(clusterMap: HashMap<String, *>): Array<String> {
=======
Expand All @@ -316,6 +317,8 @@ class ClusterDetailFragment : Fragment() {
}
return clusterName.toTypedArray()
>>>>>>> d3d83a0bc (select different cluster, command will remove previous displayed parameter)
=======
>>>>>>> d419b4060 (resolve comments)
}

override fun onStop() {
Expand All @@ -326,6 +329,7 @@ class ClusterDetailFragment : Fragment() {
companion object {
private const val TAG = "ClusterDetailFragment"
<<<<<<< HEAD
<<<<<<< HEAD
<<<<<<< HEAD
private const val ENDPOINT_ID_KEY = "endpoint_id"
private const val DEVICE_PTR_KEY = "device_ptr"
Expand All @@ -348,15 +352,25 @@ class ClusterDetailFragment : Fragment() {
=======
private const val ENDPOINT_ID = "endpoint_id"
private const val DEVICE_PTR = "device_ptr"
=======
private const val ENDPOINT_ID_KEY = "endpoint_id"
private const val DEVICE_PTR_KEY = "device_ptr"

>>>>>>> d419b4060 (resolve comments)
fun newInstance(
deviceId: Long,
endpointId: Int
): ClusterDetailFragment {
return ClusterDetailFragment().apply {
arguments = Bundle(2).apply {
<<<<<<< HEAD
putLong(DEVICE_PTR, deviceId)
putInt(ENDPOINT_ID, endpointId)
>>>>>>> cd1c99028 (resolve comments)
=======
putLong(DEVICE_PTR_KEY, deviceId)
putInt(ENDPOINT_ID_KEY, endpointId)
>>>>>>> d419b4060 (resolve comments)
}
}
}
Expand Down

0 comments on commit 1cd1001

Please sign in to comment.