mirror of
https://github.com/pppscn/SmsForwarder
synced 2024-11-08 01:10:23 +00:00
优化:自动任务
触发条件网络状态
:仅Android 10
(含) 以上显示数据卡槽
选项 #429
This commit is contained in:
parent
b02c03a092
commit
41b23613a6
@ -2,6 +2,7 @@ package com.idormy.sms.forwarder.fragment.condition
|
||||
|
||||
import android.annotation.SuppressLint
|
||||
import android.content.Intent
|
||||
import android.os.Build
|
||||
import android.text.Editable
|
||||
import android.text.TextWatcher
|
||||
import android.view.LayoutInflater
|
||||
@ -58,7 +59,7 @@ class NetworkFragment : BaseFragment<FragmentTasksConditionNetworkBinding?>(), V
|
||||
|
||||
binding!!.rgNetworkState.setOnCheckedChangeListener { _, checkedId ->
|
||||
Log.d(TAG, "rgNetworkState checkedId:$checkedId")
|
||||
binding!!.layoutDataSimSlot.visibility = if (checkedId == R.id.rb_net_mobile) View.VISIBLE else View.GONE
|
||||
binding!!.layoutDataSimSlot.visibility = if (checkedId == R.id.rb_net_mobile && Build.VERSION.SDK_INT >= Build.VERSION_CODES.Q) View.VISIBLE else View.GONE
|
||||
binding!!.layoutWifiSsid.visibility = if (checkedId == R.id.rb_net_wifi) View.VISIBLE else View.GONE
|
||||
checkSetting(true)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user