Skip to content

Commit

Permalink
Show preview complex data type (#12008)
Browse files Browse the repository at this point in the history
* fix byte[] displaying and enable user to specify byte[] value

* use encodeToByteArray and decodeToString

* change variable naming

* enable ui to see preview on complex data type
  • Loading branch information
JasonLiuZhuoCheng authored Nov 30, 2021
1 parent 20c564b commit c36fa99
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -241,7 +241,7 @@ class ClusterDetailFragment : Fragment() {
} else {
it!!.javaClass.toString().split('$').last()
}
attributeCallbackItem.clusterCallbackDataTv.text = callbackClassName
attributeCallbackItem.clusterCallbackDataTv.text = objectString
attributeCallbackItem.clusterCallbackDataTv.setOnClickListener {
AlertDialog.Builder(requireContext())
.setTitle(callbackClassName)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@
android:layout_height="wrap_content"
android:padding="16dp"
android:singleLine="false"
android:maxLines="4"
android:ellipsize="end"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toStartOf="@id/clusterCallbackTypeTv"
app:layout_constraintStart_toEndOf="@id/clusterCallbackNameTv"
Expand Down

0 comments on commit c36fa99

Please sign in to comment.