desc:作为launcher

main
xiaowusky 2 years ago
parent 582cbdc668
commit d15ea8af8d

@ -50,8 +50,9 @@
android:screenOrientation="landscape">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
<category android:name="android.intent.category.HOME" />
<category android:name="android.intent.category.DEFAULT" />
</intent-filter>
</activity>
<activity

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

Loading…
Cancel
Save