desc:告警数据界面

main
xiaowusky
parent 841ed264dc
commit ee664206d7

@ -45,7 +45,7 @@ object SimHelper {
private fun watchSimRssi(context: Context) { private fun watchSimRssi(context: Context) {
val tm = context.getSystemService(Context.TELEPHONY_SERVICE) as TelephonyManager val tm = context.getSystemService(Context.TELEPHONY_SERVICE) as TelephonyManager
//获取指定卡槽的信号强度 //获取指定卡槽的信号强度
val info = getNewerSlotSubscriptionInfo(context, 1) val info = getNewerSlotSubscriptionInfo(context, 0)
info?.let { info?.let {
val mTelephonyManagerForSubscriptionId = val mTelephonyManagerForSubscriptionId =
tm.createForSubscriptionId(info!!.subscriptionId) tm.createForSubscriptionId(info!!.subscriptionId)

Loading…
Cancel
Save