Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion app/src/main/java/com/wifi/improv/demo/MainActivity.kt
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ fun ImprovDeviceList(
onClick = { connect(it) }
) {
Column {
Text(it.name)
Text(it.name ?: it.address)
Text(
text = it.address,
style = MaterialTheme.typography.caption
Expand Down
2 changes: 1 addition & 1 deletion library/src/main/java/com/wifi/improv/ImprovDevice.kt
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package com.wifi.improv

data class ImprovDevice(
val name: String,
val name: String?,
val address: String
) {
override fun equals(other: Any?): Boolean {
Expand Down
Loading