UI调整
This commit is contained in:
parent
0c90c61598
commit
6378f323a3
|
|
@ -194,21 +194,21 @@ public class CheckWifiUtil {
|
|||
|
||||
if ("camera".equals(devicetype)) {
|
||||
if (!wifissid.startsWith("GW_AP_")) {
|
||||
ToastUtil.show(activity.getApplicationContext(), "请先连接摄像头设备热点");
|
||||
ToastUtil.show(activity.getApplicationContext(), "请先连接摄像头ifish-xxxx的网络");
|
||||
return;
|
||||
}
|
||||
//todo 摄像头
|
||||
intent.setClass(activity, HotSpotConnentDeviceCameraActivity.class);
|
||||
} else if ("pet".equals(devicetype)) {
|
||||
if (!wifissid.startsWith("ifish-")) {
|
||||
ToastUtil.show(activity.getApplicationContext(), "请先连接宠物笼设备热点");
|
||||
ToastUtil.show(activity.getApplicationContext(), "请先连接宠物笼ifish-xxxx的网络");
|
||||
return;
|
||||
}
|
||||
//todo 宠物
|
||||
intent.setClass(activity, HotSpotConnentPetDeviceActivity.class);
|
||||
} else {
|
||||
if (!wifissid.startsWith("ifish-")) {
|
||||
ToastUtil.show(activity.getApplicationContext(), "请先连接设备热点");
|
||||
ToastUtil.show(activity.getApplicationContext(), "请先连接ifish-xxxx的网络");
|
||||
return;
|
||||
}
|
||||
//todo 设备
|
||||
|
|
|
|||
|
|
@ -292,7 +292,6 @@ public class NewBindDeviceActivity extends AppCompatActivity {
|
|||
*/
|
||||
private void connectAP() {
|
||||
isJump = true;
|
||||
ToastUtil.show(NewBindDeviceActivity.this, "开始AP连接...");
|
||||
Intent i = new Intent();
|
||||
i = new Intent(Settings.ACTION_WIFI_SETTINGS);
|
||||
startActivity(i);
|
||||
|
|
|
|||
Loading…
Reference in New Issue