diff --git a/sdkdemo/src/main/java/com/tencent/iot/explorer/link/demo/ModuleActivity.kt b/sdkdemo/src/main/java/com/tencent/iot/explorer/link/demo/ModuleActivity.kt index df2ad5b4a..a7f7a36d0 100644 --- a/sdkdemo/src/main/java/com/tencent/iot/explorer/link/demo/ModuleActivity.kt +++ b/sdkdemo/src/main/java/com/tencent/iot/explorer/link/demo/ModuleActivity.kt @@ -34,7 +34,7 @@ class ModuleActivity : BaseActivity() { override fun setListener() { btn_1.setOnClickListener { - jumpActivity(LoginActivity::class.java) +// jumpActivity(LoginActivity::class.java) } btn_2.setOnClickListener { diff --git a/sdkdemo/src/main/java/com/tencent/iot/explorer/link/demo/core/activity/ConnectDeviceActivity.kt b/sdkdemo/src/main/java/com/tencent/iot/explorer/link/demo/core/activity/ConnectDeviceActivity.kt index 130e45d96..8f21e5983 100644 --- a/sdkdemo/src/main/java/com/tencent/iot/explorer/link/demo/core/activity/ConnectDeviceActivity.kt +++ b/sdkdemo/src/main/java/com/tencent/iot/explorer/link/demo/core/activity/ConnectDeviceActivity.kt @@ -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() {