desc:作为launcher

main
xiaowusky 2 years ago
parent 582cbdc668
commit d15ea8af8d

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

@ -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)
} }
} }

Loading…
Cancel
Save