Refine hostAddress

This commit is contained in:
Mygod
2018-01-05 08:13:29 +08:00
parent 2a235c89af
commit dd25fe6654
2 changed files with 8 additions and 14 deletions

View File

@@ -87,7 +87,7 @@ class MainActivity : AppCompatActivity(), ServiceConnection, Toolbar.OnMenuItemC
}
holder.binding.device = device
holder.binding.ipAddress = when (position) {
0 -> binder?.service?.routing?.hostAddress?.hostAddress
0 -> binder?.service?.routing?.hostAddress?.address?.hostAddress
else -> arpCache[device?.deviceAddress]
}
holder.binding.executePendingBindings()