|
|
@ -85,8 +85,8 @@ class CommonTopBar : LinearLayout {
|
|
|
|
|
|
|
|
|
|
|
|
override fun onLevel(level: Int) {
|
|
|
|
override fun onLevel(level: Int) {
|
|
|
|
Log.i(this@CommonTopBar.javaClass.name, "wifiCallback onLevel = $level")
|
|
|
|
Log.i(this@CommonTopBar.javaClass.name, "wifiCallback onLevel = $level")
|
|
|
|
|
|
|
|
mBinding?.wifi?.visibility = if (level > 0) VISIBLE else GONE
|
|
|
|
val showLevel = (level + 1) * 20
|
|
|
|
val showLevel = (level + 1) * 20
|
|
|
|
mBinding?.wifi?.visibility = if (showLevel > 0) VISIBLE else GONE
|
|
|
|
|
|
|
|
mBinding?.wifi?.setImageLevel(showLevel)
|
|
|
|
mBinding?.wifi?.setImageLevel(showLevel)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|