Skip to content

Commit

Permalink
video sdk合规检测,去掉explorer的入口跳转,注掉获取ssid的代码。
Browse files Browse the repository at this point in the history
Change-Id: I07207f897270bc1dfac9d7cf1b4db09a81c357ea
  • Loading branch information
SundoggyNew committed Jan 3, 2024
1 parent 809c778 commit adce182
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 23 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ class ModuleActivity : BaseActivity() {

override fun setListener() {
btn_1.setOnClickListener {
jumpActivity(LoginActivity::class.java)
// jumpActivity(LoginActivity::class.java)
}

btn_2.setOnClickListener {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -67,28 +67,28 @@ class ConnectDeviceActivity : BaseActivity() {

override fun onResume() {
super.onResume()
(applicationContext.getSystemService(Context.WIFI_SERVICE) as? WifiManager)?.connectionInfo?.let {
L.d("当前WIFI名:${it.ssid}")
var ssidName = it.ssid.replace("\"", "")
tv_select_wifi.text = ssidName
if (type == 1) {
task.mSsid = ssidName
task.mBssid = it.bssid ?: ""
task.mAccessToken = App.data.bindDeviceToken
} else {
if (tv_select_hotspot.visibility == View.VISIBLE) {
task.mSsid = ssidName
task.mBssid = it.bssid ?: ""
task.mAccessToken = App.data.bindDeviceToken
} else {
tv_reselect_hotspot.visibility = View.VISIBLE
tv_start_connect.visibility = View.VISIBLE
iv_select_wifi.visibility = View.GONE
et_select_wifi_pwd.visibility = View.INVISIBLE
smart_second_wifi_pwd.visibility = View.INVISIBLE
}
}
}
// (applicationContext.getSystemService(Context.WIFI_SERVICE) as? WifiManager)?.connectionInfo?.let {
// L.d("当前WIFI名:${it.ssid}")
// var ssidName = it.ssid.replace("\"", "")
// tv_select_wifi.text = ssidName
// if (type == 1) {
// task.mSsid = ssidName
// task.mBssid = it.bssid ?: ""
// task.mAccessToken = App.data.bindDeviceToken
// } else {
// if (tv_select_hotspot.visibility == View.VISIBLE) {
// task.mSsid = ssidName
// task.mBssid = it.bssid ?: ""
// task.mAccessToken = App.data.bindDeviceToken
// } else {
// tv_reselect_hotspot.visibility = View.VISIBLE
// tv_start_connect.visibility = View.VISIBLE
// iv_select_wifi.visibility = View.GONE
// et_select_wifi_pwd.visibility = View.INVISIBLE
// smart_second_wifi_pwd.visibility = View.INVISIBLE
// }
// }
// }
}

override fun setListener() {
Expand Down

0 comments on commit adce182

Please sign in to comment.