|
|
@@ -57,15 +57,8 @@ class HospitalActivity : BaseTvMVVMActivity<ActivityHospitalBinding, HospitalVie
|
|
|
/**
|
|
|
* 获取权限
|
|
|
*/
|
|
|
- @SuppressLint("MissingPermission")
|
|
|
private fun initPermission() {
|
|
|
- PermissionList.readPhoneState.check(this) {
|
|
|
- binding.tvSnCode.text = if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.P) {
|
|
|
- "终端号:" + Build.getSerial()
|
|
|
- } else {
|
|
|
- "终端号:" + Build.SERIAL
|
|
|
- }
|
|
|
- }
|
|
|
+
|
|
|
}
|
|
|
|
|
|
@SuppressLint("ClickableViewAccessibility")
|
|
|
@@ -200,6 +193,13 @@ class HospitalActivity : BaseTvMVVMActivity<ActivityHospitalBinding, HospitalVie
|
|
|
binding.imageLoginOut.show(true)
|
|
|
binding.tvLoginOut.show(true)
|
|
|
}
|
|
|
+ PermissionList.readPhoneState.check(this) {
|
|
|
+ binding.tvSnCode.text = if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.P) {
|
|
|
+ "终端号:" + Build.getSerial()
|
|
|
+ } else {
|
|
|
+ "终端号:" + Build.SERIAL
|
|
|
+ }
|
|
|
+ }
|
|
|
getSlideShowList()
|
|
|
}
|
|
|
|